/* ===========================
   WEBSAURS 共通スタイル
   =========================== */

/* ===== CSS変数 ===== */
:root {
  --navy: #0d1f3c;
  --navy-mid: #1a3560;
  --navy-light: #2a4a7f;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --accent: #4a90d9;
  --text: #333;
  --text-light: #5a6a80;
  --border: #dde3ed;
}

/* ===== リセット ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background-color: var(--off-white);
  overflow-x: hidden;
}

/* ===========================
   サイト共通ヘッダー
   =========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 56px;
}

.site-header .logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.06em;
}

.site-header nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 500;
  margin-left: 1.4rem;
  transition: color 0.2s;
}

.site-header nav a:hover { color: #fff; }

/* ===========================
   サイト共通フッター
   =========================== */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2rem 5%;
  font-size: 0.78rem;
}

.site-footer .logo {
  font-family: 'Playfair Display', Georgia, serif;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.6rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin-bottom: 0.8rem;
}

.footer-nav a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s;
}

.footer-nav a:hover { color: #fff; }

/* ===========================
   トップページ：ヒーロー
   =========================== */

.hero {
  background: var(--navy);
  color: #fff;
  padding: 72px 5% 64px;
}

.hero-inner { max-width: 680px; }

.hero-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #7aafff;
  border: 1px solid rgba(122,175,255,0.4);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  line-height: 1.35;
  margin-bottom: 1rem;
  color: #fff;
  border-bottom: none;
  padding-bottom: 0;
  letter-spacing: normal;
}

.hero p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 11px 24px;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 3px;
  transition: background 0.2s;
}
.btn-primary:hover { background: #2f69c2; }

.btn-outline {
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  text-decoration: none;
  padding: 11px 24px;
  font-size: 0.875rem;
  border-radius: 3px;
  transition: border-color 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.7); }

/* ===========================
   トップページ：セクション共通
   =========================== */

.top-section { padding: 64px 5%; }

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--navy);
  margin-bottom: 0.6rem;
  border-bottom: none;
  padding-bottom: 0;
}

.section-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

/* ===========================
   トップページ：フィーチャー
   =========================== */

.features { background: var(--off-white); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.feature-icon {
  width: 36px; height: 36px;
  background: var(--navy);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  padding: 0;
  border: none;
  background: none;
  letter-spacing: normal;
}

.feature-card p {
  font-size: 0.83rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ===========================
   トップページ：ブログカード
   =========================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  background: var(--white);
  transition: box-shadow 0.2s;
}
.blog-card:hover { box-shadow: 0 4px 16px rgba(13,31,60,0.1); }

.blog-card-img {
  background: var(--navy-mid);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.blog-card-body { padding: 1.2rem; }

.blog-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.blog-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  line-height: 1.5;
  padding: 0;
  border: none;
  background: none;
  letter-spacing: normal;
}

.blog-card p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ===========================
   トップページ：書籍
   =========================== */

.books { background: var(--navy); }
.books .section-title { color: #fff; }
.books .section-label { color: #7aafff; }
.books .section-desc { color: rgba(255,255,255,0.65); }

.book-card {
  display: flex;
  gap: 2rem;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 1.8rem 2rem;
  max-width: 640px;
}

.book-cover {
  width: 100px;
  min-width: 100px;
  height: 136px;
  background: var(--navy-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
}

.book-info h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #fff;
  border: none;
  padding: 0;
  background: none;
}

.book-info p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1rem;
}

.btn-amazon {
  display: inline-block;
  background: #ff9900;
  color: #111;
  text-decoration: none;
  padding: 9px 20px;
  font-size: 0.83rem;
  font-weight: 700;
  border-radius: 3px;
  transition: background 0.2s;
}
.btn-amazon:hover { background: #e68a00; }

/* ===========================
   トップページ：プロフィール
   =========================== */

.profile-inner {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  max-width: 700px;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.profile-text h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
  padding: 0;
  border: none;
  background: none;
}

.profile-text p {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ===========================
   ブログ記事：レイアウト
   =========================== */

.article-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  background: #fff;
}

/* ===========================
   ブログ記事：パンくず
   =========================== */

.breadcrumb {
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ===========================
   ブログ記事：リード文
   =========================== */

.lead {
  font-size: 1rem;
  color: #444;
  margin-bottom: 40px;
  padding: 24px;
  border-left: 4px solid var(--accent);
  background: #f0f6ff;
  border-radius: 0 8px 8px 0;
}

/* ===========================
   ブログ記事：h1
   =========================== */

h1 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #1a1a2e;
  line-height: 1.4;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--accent);
  letter-spacing: 0.03em;
}

/* ===========================
   ブログ記事：h2
   =========================== */

h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #1a1a2e 0%, var(--accent) 100%);
  padding: 14px 20px;
  margin: 56px 0 24px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  position: relative;
}

h2::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  margin-bottom: 2px;
}

/* ===========================
   ブログ記事：h3
   =========================== */

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
  padding: 10px 16px;
  margin: 40px 0 16px;
  border-left: 5px solid var(--accent);
  border-bottom: 1px solid #d0e4f7;
  background: #f7fbff;
  border-radius: 0 4px 4px 0;
  letter-spacing: 0.03em;
}

/* ===========================
   ブログ記事：h4
   =========================== */

h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2c5f8a;
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 3px solid #a8c8e8;
  letter-spacing: 0.02em;
}

/* ===========================
   ブログ記事：h5
   =========================== */

h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #555;
  margin: 24px 0 8px;
  padding: 4px 0;
  letter-spacing: 0.02em;
}

/* ===========================
   ブログ記事：段落・強調
   =========================== */

p {
  margin-bottom: 20px;
  color: #444;
}

strong {
  font-weight: 700;
  color: #1a1a2e;
  background: linear-gradient(transparent 60%, #c8e0f7 60%);
  padding: 0 2px;
}

/* ===========================
   ブログ記事：リスト
   =========================== */

ul, ol {
  margin: 16px 0 24px 1.5em;
  color: #444;
}

ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.8;
}

/* ===========================
   ブログ記事：ポイントボックス
   =========================== */

.point-box {
  background: #f0f6ff;
  border: 1px solid #b8d4f0;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}

.point-box p:last-child { margin-bottom: 0; }

/* ===========================
   ブログ記事：まとめボックス
   =========================== */

.summary-box {
  background: #1a1a2e;
  color: #fff;
  border-radius: 8px;
  padding: 28px 32px;
  margin: 32px 0;
}

.summary-box h4 {
  color: #a8c8e8;
  border-left-color: var(--accent);
  margin-top: 0;
}

.summary-box ul { color: #ddd; }

/* ===========================
   ブログ記事：目次
   =========================== */

.toc {
  background: #f7fbff;
  border: 1px solid #b8d4f0;
  border-radius: 8px;
  padding: 24px 28px;
  margin: 32px 0 40px;
}

.toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.toc-list {
  margin: 0;
  padding-left: 1.4em;
  color: #333;
}

.toc-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.toc-list ol {
  margin: 6px 0 4px 1.2em;
  padding: 0;
}

.toc-list ol li {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.toc-list a {
  color: #2c5f8a;
  text-decoration: none;
}

.toc-list a:hover {
  text-decoration: underline;
  color: var(--accent);
}

/* ===========================
   ブログ記事：情報源
   =========================== */

.reference {
  font-size: 0.8rem;
  color: #888;
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
}

.reference p {
  color: #888;
  margin-bottom: 6px;
  font-size: 0.8rem;
}

/* ===========================
   アニメーション
   =========================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tag { animation: fadeUp 0.5s 0.1s both; }
.hero h1   { animation: fadeUp 0.5s 0.2s both; }
.hero p    { animation: fadeUp 0.5s 0.3s both; }
.hero-btns { animation: fadeUp 0.5s 0.4s both; }

/* ===========================
   レスポンシブ
   =========================== */

@media (max-width: 600px) {
  /* ヘッダー */
  .site-header { padding: 0 4%; }
  .site-header nav a { margin-left: 0.8rem; font-size: 0.72rem; }

  /* トップページ */
  .hero { padding: 48px 4% 44px; }
  .top-section { padding: 48px 4%; }
  .features-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .book-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.4rem;
    gap: 1.2rem;
  }
  .profile-avatar { width: 64px; height: 64px; font-size: 1.6rem; }

  /* ブログ記事 */
  .article-wrap { padding: 24px 16px 60px; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.15rem; padding: 12px 16px; }
  h3 { font-size: 1.05rem; }
}
