/*
Theme Name: JETSTORK SE Child
Template: jstorkse
Description: JETSTORK SE Child Theme for gadgetlife.net
Version: 1.0
*/

/* ===== CSS Variables（ブランドカラー） ===== */
:root {
  --gl-primary: #1a56db;
  --gl-primary-dark: #1e40af;
  --gl-primary-light: #dbeafe;
  --gl-accent: #059669;
  --gl-accent-light: #d1fae5;
  --gl-text: #1f2937;
  --gl-text-sub: #4b5563;
  --gl-bg: #f9fafb;
  --gl-bg-card: #ffffff;
  --gl-border: #e5e7eb;
  --gl-radius: 12px;
  --gl-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --gl-shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
  --gl-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Inter:wght@400;500;600;700&display=swap');

/* ===== ベースフォント ===== */
body {
  font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  color: var(--gl-text);
  background-color: var(--gl-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ===== 記事本文 ===== */
.entry-content,
.post-content,
.article-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--gl-text);
}

.entry-content p {
  margin-bottom: 1.5em;
}

.entry-content h2 {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--gl-primary-dark);
  border-left: 4px solid var(--gl-primary);
  padding: 0.4em 0 0.4em 0.8em;
  margin: 2em 0 1em;
  background: linear-gradient(90deg, var(--gl-primary-light), transparent);
}

.entry-content h3 {
  font-size: 1.25em;
  font-weight: 700;
  color: var(--gl-text);
  border-bottom: 2px solid var(--gl-primary);
  padding-bottom: 0.3em;
  margin: 1.8em 0 0.8em;
}

.entry-content h4 {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--gl-text-sub);
  margin: 1.5em 0 0.5em;
}

/* ===== カード型アーカイブ ===== */
.post-list-card,
.post-list-mag,
article.post {
  background: var(--gl-bg-card);
  border-radius: var(--gl-radius);
  box-shadow: var(--gl-shadow);
  overflow: hidden;
  transition: transform var(--gl-transition), box-shadow var(--gl-transition);
}

.post-list-card:hover,
.post-list-mag:hover,
article.post:hover {
  transform: translateY(-4px);
  box-shadow: var(--gl-shadow-lg);
}

/* ===== ヘッダー ===== */
#header,
.l-header {
  background: var(--gl-bg-card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.site-title a,
.l-header__title a {
  color: var(--gl-primary-dark) !important;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* ===== グローバルナビ ===== */
#global-nav a,
.l-header__nav a {
  font-weight: 500;
  color: var(--gl-text) !important;
  transition: color var(--gl-transition);
}

#global-nav a:hover,
.l-header__nav a:hover {
  color: var(--gl-primary) !important;
}

/* ===== サイドバー ===== */
.widget {
  background: var(--gl-bg-card);
  border-radius: var(--gl-radius);
  padding: 1.2em;
  box-shadow: var(--gl-shadow);
  margin-bottom: 1.5em;
}

.widget-title,
.widgettitle {
  font-size: 0.95em;
  font-weight: 700;
  color: var(--gl-primary-dark);
  border-bottom: 2px solid var(--gl-primary);
  padding-bottom: 0.4em;
  margin-bottom: 1em;
}

/* ===== フッター ===== */
#footer,
.l-footer {
  background: var(--gl-text);
  color: #d1d5db;
}

#footer a,
.l-footer a {
  color: #93c5fd !important;
}

/* ===== ボタン共通 ===== */
.btn,
.entry-content .btn,
a.btn {
  display: inline-block;
  padding: 0.75em 2em;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--gl-transition);
  text-align: center;
}

.btn-primary {
  background: var(--gl-primary);
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--gl-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3);
}

.btn-accent {
  background: var(--gl-accent);
  color: #fff !important;
}

.btn-accent:hover {
  background: #047857;
  transform: translateY(-2px);
}

/* ===== CTA ボックス（ショートコード用） ===== */
.gl-cta-box {
  background: linear-gradient(135deg, var(--gl-primary-light), #eff6ff);
  border: 2px solid var(--gl-primary);
  border-radius: var(--gl-radius);
  padding: 1.5em;
  margin: 2em 0;
  text-align: center;
}

.gl-cta-box__title {
  font-size: 1.2em;
  font-weight: 900;
  color: var(--gl-primary-dark);
  margin-bottom: 0.5em;
}

.gl-cta-box__desc {
  font-size: 0.95em;
  color: var(--gl-text-sub);
  margin-bottom: 1em;
}

.gl-cta-box__btn {
  display: inline-block;
  background: var(--gl-primary);
  color: #fff !important;
  padding: 0.85em 2.5em;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05em;
  text-decoration: none;
  transition: all var(--gl-transition);
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.25);
}

.gl-cta-box__btn:hover {
  background: var(--gl-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(26, 86, 219, 0.35);
  color: #fff !important;
}

/* ===== CTA ボックス（アクセントカラー版） ===== */
.gl-cta-box--accent {
  background: linear-gradient(135deg, var(--gl-accent-light), #ecfdf5);
  border-color: var(--gl-accent);
}

.gl-cta-box--accent .gl-cta-box__title {
  color: #065f46;
}

.gl-cta-box--accent .gl-cta-box__btn {
  background: var(--gl-accent);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.gl-cta-box--accent .gl-cta-box__btn:hover {
  background: #047857;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

/* ===== プロフィールボックス ===== */
.gl-profile-box {
  display: flex;
  align-items: center;
  gap: 1em;
  background: var(--gl-bg-card);
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius);
  padding: 1.2em;
  margin: 1.5em 0;
}

.gl-profile-box__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.gl-profile-box__name {
  font-weight: 700;
  font-size: 1.05em;
  color: var(--gl-text);
  margin-bottom: 0.2em;
}

.gl-profile-box__bio {
  font-size: 0.85em;
  color: var(--gl-text-sub);
  line-height: 1.6;
}

/* ===== モバイル追従CTAバー ===== */
.gl-mobile-cta {
  display: none;
}

@media (max-width: 767px) {
  .gl-mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--gl-bg-card);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 0.6em 1em;
    gap: 0.5em;
    justify-content: center;
    align-items: center;
  }

  .gl-mobile-cta__btn {
    flex: 1;
    text-align: center;
    padding: 0.7em 1em;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85em;
    text-decoration: none;
    color: #fff !important;
    background: var(--gl-primary);
  }

  .gl-mobile-cta__btn--accent {
    background: var(--gl-accent);
  }

  /* モバイルCTAバー分の余白 */
  body {
    padding-bottom: 70px;
  }

  /* モバイルフォント調整 */
  .entry-content,
  .post-content {
    font-size: 15px;
    line-height: 1.85;
  }

  .entry-content h2 {
    font-size: 1.3em;
  }
}

/* ===== 「実際に購入・使用してレビュー」バッジ ===== */
.gl-badge-reviewed {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.8em;
  font-weight: 700;
  padding: 0.3em 0.8em;
  border-radius: 50px;
  margin-bottom: 0.5em;
}

.gl-badge-reviewed::before {
  content: "\2713";
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  line-height: 1.2em;
  text-align: center;
  background: #f59e0b;
  color: #fff;
  border-radius: 50%;
  font-size: 0.75em;
}

/* ===== 関連記事セクション ===== */
.gl-related-posts {
  background: var(--gl-bg);
  border-radius: var(--gl-radius);
  padding: 1.5em;
  margin: 2em 0;
}

.gl-related-posts__title {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--gl-primary-dark);
  margin-bottom: 1em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid var(--gl-primary);
}

.gl-related-posts__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gl-related-posts__list li {
  margin-bottom: 0.5em;
}

.gl-related-posts__list a {
  color: var(--gl-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--gl-transition);
}

.gl-related-posts__list a:hover {
  color: var(--gl-primary-dark);
  text-decoration: underline;
}

.gl-related-posts__list a::before {
  content: "\25B6 ";
  font-size: 0.7em;
  color: var(--gl-primary);
}

/* ===== おすすめ記事ウィジェット ===== */
.gl-recommend-widget {
  background: linear-gradient(135deg, #1e40af, #1a56db);
  color: #fff;
  border-radius: var(--gl-radius);
  padding: 1.5em;
  margin-bottom: 1.5em;
}

.gl-recommend-widget__title {
  font-weight: 900;
  font-size: 1em;
  margin-bottom: 1em;
  text-align: center;
  color: #fff;
}

.gl-recommend-widget a {
  display: block;
  background: rgba(255,255,255,0.15);
  color: #fff !important;
  padding: 0.7em 1em;
  border-radius: 8px;
  margin-bottom: 0.5em;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9em;
  transition: background var(--gl-transition);
}

.gl-recommend-widget a:hover {
  background: rgba(255,255,255,0.25);
}

/* ===== テーブル改善 ===== */
.entry-content table {
  border-collapse: collapse;
  width: 100%;
  border-radius: var(--gl-radius);
  overflow: hidden;
  box-shadow: var(--gl-shadow);
  margin: 1.5em 0;
}

.entry-content table th {
  background: var(--gl-primary);
  color: #fff;
  font-weight: 700;
  padding: 0.75em 1em;
  text-align: left;
}

.entry-content table td {
  padding: 0.75em 1em;
  border-bottom: 1px solid var(--gl-border);
}

.entry-content table tr:last-child td {
  border-bottom: none;
}

.entry-content table tr:nth-child(even) {
  background: #f9fafb;
}

/* ===== 画像のwidth/height（CLS対策） ===== */
.entry-content img {
  max-width: 100%;
  height: auto;
}

/* ===== スムーズスクロール ===== */
html {
  scroll-behavior: smooth;
}

/* ===== 選択色 ===== */
::selection {
  background: var(--gl-primary-light);
  color: var(--gl-primary-dark);
}
