/* ===================================
   thirty-shift.com スタイルシート
   手書きノート × 雑誌エディトリアル
=================================== */

@import url('https://fonts.googleapis.com/css2?family=Klee+One:wght@400;600&family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap');

/* CSS変数 */
:root {
  --bg: #FDF8F0;
  --text: #1A1A1A;
  --accent-yellow: #F5C842;
  --accent-red: #E8391D;
  --accent-blue: #3B5BDB;
  --border: #1A1A1A;
  --shadow: 4px 4px 0 #1A1A1A;
  --shadow-sm: 2px 2px 0 #1A1A1A;
  --font-heading: 'Zen Maru Gothic', sans-serif;
  --font-body: 'Klee One', cursive;
}

/* リセット */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.8;
  overflow-x: hidden;
}

/* ===================================
   マーカー・強調
=================================== */

.marker {
  background: linear-gradient(transparent 40%, rgba(245, 200, 66, 0.75) 40%);
  padding: 0 2px;
}

.marker-strong {
  background: linear-gradient(transparent 30%, rgba(245, 200, 66, 0.9) 30%);
  padding: 0 4px;
  font-weight: 600;
}

/* ===================================
   スタンプバッジ
=================================== */

.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.68rem;
  padding: 2px 9px;
  border: 2px solid currentColor;
  border-radius: 2px;
  letter-spacing: 0.08em;
  transform: rotate(-2deg);
}

.badge-red   { color: var(--accent-red); }
.badge-blue  { color: var(--accent-blue); }
.badge-black { color: var(--text); }

/* ===================================
   ヘッダー
=================================== */

.site-header {
  padding: 1.2rem 2rem;
  border-bottom: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.site-logo em {
  color: var(--accent-red);
  font-style: normal;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-tagline {
  font-size: 0.75rem;
  color: #888;
}

.site-nav a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text);
  text-decoration: none;
  margin-left: 1.2rem;
}

.site-nav a:hover { color: var(--accent-red); }

/* ===================================
   ヒーロー
=================================== */

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  font-family: system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--accent-red);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-eyebrow::after {
  content: '';
  width: 50px;
  height: 2px;
  background: var(--accent-red);
  flex-shrink: 0;
}

.hero-headline {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-headline .hl-red {
  display: block;
  color: var(--accent-red);
}

.hero-sub {
  font-size: 1.05rem;
  color: #555;
  max-width: 480px;
  line-height: 1.9;
}

/* 手書き円の装飾 */
.hero-deco-circle {
  position: absolute;
  top: 2rem;
  right: 3rem;
  opacity: 0.12;
  pointer-events: none;
}

@media (max-width: 640px) {
  .hero { padding: 3rem 1.2rem 2.5rem; }
  .hero-deco-circle { display: none; }
}

/* ===================================
   波線区切り
=================================== */

.wave-divider {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
}

/* ===================================
   筆者紹介バー
=================================== */

.author-bar {
  max-width: 1100px;
  margin: 1.5rem auto 2.5rem;
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: white;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}

.author-bar::before {
  content: 'AUTHOR';
  position: absolute;
  top: -11px;
  left: 18px;
  font-family: system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  background: var(--accent-yellow);
  border: 2px solid var(--border);
  padding: 1px 8px;
}

.author-avatar {
  font-size: 2.6rem;
  flex-shrink: 0;
  line-height: 1;
}

.author-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.author-bio {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.6;
}

/* ===================================
   記事グリッド（エディトリアル）
=================================== */

.articles-section {
  max-width: 1100px;
  margin: 2rem auto 4rem;
  padding: 0 2rem;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--border) 0, var(--border) 6px,
    transparent 6px, transparent 12px
  );
}

/* 非対称グリッド */
.editorial-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.4rem;
}

.card-featured { grid-row: span 2; }

@media (max-width: 760px) {
  .editorial-grid {
    grid-template-columns: 1fr;
  }
  .card-featured { grid-row: span 1; }
}

/* ===================================
   記事カード
=================================== */

.article-card {
  background: white;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.article-card:hover {
  transform: translate(-2px, -2px) !important;
  box-shadow: 6px 6px 0 var(--border) !important;
}

.card-tilt-l  { transform: rotate(-1deg); }
.card-tilt-r  { transform: rotate(0.5deg); }
.card-tilt-r2 { transform: rotate(0.9deg); }

/* フィーチャーカード（黒背景） */
.card-featured {
  background: var(--text);
  padding: 2rem;
}

.card-featured .article-card-title { color: var(--bg); font-size: 1.55rem; }
.card-featured .article-card-excerpt { color: rgba(253,248,240,0.72); }
.card-featured .article-card-meta   { color: rgba(253,248,240,0.45); }
.card-featured .card-read-more      { color: var(--accent-yellow); }

.article-card-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-card-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--text);
}

.article-card-excerpt {
  font-size: 0.86rem;
  color: #555;
  line-height: 1.75;
  flex: 1;
}

.article-card-meta {
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  color: #999;
  letter-spacing: 0.05em;
}

.card-read-more {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--accent-red);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ===================================
   フッター
=================================== */

.site-footer {
  margin-top: 4rem;
  border-top: 3px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.footer-logo em { color: var(--accent-red); font-style: normal; }

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 0.8rem 0 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8rem;
  color: #777;
  text-decoration: none;
}

.footer-links a:hover { color: var(--accent-red); }

.footer-copy {
  font-size: 0.72rem;
  color: #bbb;
  font-family: system-ui, sans-serif;
}

/* ===================================
   記事ページ
=================================== */

.article-header {
  max-width: 780px;
  margin: 3.5rem auto 0;
  padding: 0 2rem;
}

.article-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.article-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  color: #999;
  padding-bottom: 1.5rem;
  border-bottom: 2px dashed #ccc;
}

/* ===================================
   記事本文
=================================== */

.article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

.article-body p { margin-bottom: 1.5em; font-size: 1.02rem; }

.article-body h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.45rem;
  margin: 3rem 0 1rem;
  padding: 0.5rem 1rem;
  border-left: 5px solid var(--accent-yellow);
  background: rgba(245,200,66,0.12);
  line-height: 1.4;
}

.article-body h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 2.2rem 0 0.8rem;
  padding-bottom: 0.4rem;
  position: relative;
}

.article-body h3::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent-blue) 0, var(--accent-blue) 4px,
    transparent 4px, transparent 8px
  );
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5em;
}

.article-body li { margin-bottom: 0.4em; }
.article-body ul li::marker { color: var(--accent-red); }

.article-body strong {
  font-weight: 700;
  background: linear-gradient(transparent 42%, rgba(245,200,66,0.65) 42%);
}

.article-body hr {
  border: none;
  height: 2rem;
  position: relative;
  margin: 1rem 0;
}

/* 手書き注釈ボックス */
.note-box {
  background: rgba(59,91,219,0.05);
  border: 2px solid var(--accent-blue);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.95rem;
  position: relative;
  border-radius: 2px;
}

.note-box::before {
  content: '✏️ ひとこと';
  position: absolute;
  top: -11px; left: 12px;
  background: var(--bg);
  padding: 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: system-ui, sans-serif;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
}

/* CTAボックス */
.cta-box {
  background: white;
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.8rem;
  margin: 2.5rem 0;
  position: relative;
}

.cta-box::before {
  content: 'RECOMMEND';
  position: absolute;
  top: -12px; left: 14px;
  font-family: system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  background: var(--accent-red);
  color: white;
  border: 2px solid var(--border);
  padding: 2px 9px;
  transform: rotate(-1deg);
}

.cta-box h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.cta-box p {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 1rem;
}

.cta-btn {
  display: inline-block;
  background: var(--accent-red);
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 1.8rem;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: transform 0.1s, box-shadow 0.1s;
}

.cta-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--border);
}

/* まとめボックス */
.summary-box {
  background: white;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.8rem;
  margin: 2.5rem 0;
}

.summary-box .summary-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--accent-red);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-box ol {
  padding-left: 1.2rem;
}

.summary-box li {
  font-weight: 600;
  margin-bottom: 0.5em;
}

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

@media (max-width: 600px) {
  .site-header  { padding: 1rem 1.2rem; }
  .articles-section { padding: 0 1rem; }
  .article-body { padding: 1.5rem 1rem 3rem; }
  .article-header { padding: 0 1rem; margin-top: 2.5rem; }
  .author-bar { margin: 1rem 1rem 2rem; padding: 1.2rem; }
  .wave-divider { padding: 0 1rem; }
  .hero { padding: 2.5rem 1.2rem 2rem; }
}

/* ===================================
   記事内テーブル
=================================== */

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  background: #fff;
}

.article-body th {
  background: #1A1A1A;
  color: #fff;
  padding: 0.7em 0.9em;
  text-align: left;
  font-weight: 700;
}

.article-body td {
  border: 1.5px solid #1A1A1A;
  padding: 0.7em 0.9em;
}

.article-body tr:nth-child(even) td {
  background: #FAF6EE;
}

/* ===================================
   PR表記
=================================== */

.pr-note {
  font-size: 0.75rem;
  color: #888;
  font-family: system-ui;
  margin-top: 0.8rem;
}
