/* ================================================================
   大槻繁 note メッセージ紹介サイト — メインスタイルシート
   Design: Magazine / Grid (案C)  Color: Navy (1corp.biz準拠)
   ================================================================ */

/* ── リセット & ベース ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy-dark:  #0f1e3d;   /* 最も濃い紺 */
  --navy-main:  #1d2f5f;   /* 1corp.bizメインカラー */
  --navy-mid:   #2a4280;   /* 中間の紺 */
  --navy-light: #4a6fa5;   /* アクセントブルー */
  --navy-pale:  #dce6f4;   /* 薄い青 */
  --navy-bg:    #f2f5fb;   /* 背景用ごく薄い青 */
  --accent:     #2980d4;   /* CTAボタン等の明るいブルー */
  --text-main:  #1a2540;
  --text-sub:   #4a5568;
  --text-light: #7a8599;
  --border:     #c5d5ea;
  --white:      #ffffff;
  --shadow-sm:  0 2px 8px rgba(29,47,95,.08);
  --shadow-md:  0 4px 20px rgba(29,47,95,.13);
  --shadow-lg:  0 8px 32px rgba(29,47,95,.20);
  --radius:     10px;
  --radius-lg:  16px;
  --max-w:      1000px;
  --header-h:   64px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  background: var(--navy-bg);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── スクロールバー ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-pale); }
::-webkit-scrollbar-thumb { background: var(--navy-light); border-radius: 3px; }

/* ================================================================
   ヘッダー / ナビ
   ================================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--navy-main);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 20px; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
}
.logo-block { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 44px; height: 44px; background: var(--navy-main); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 22px; font-weight: 900;
  letter-spacing: -1px; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(29,47,95,.40);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-main { font-size: 15px; font-weight: 700; color: var(--navy-dark); }
.logo-sub  { font-size: 10px; color: var(--text-light); }

.header-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 6px 12px; border-radius: 20px; font-size: 12px;
  color: var(--text-sub); transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-link:hover { background: var(--navy-pale); color: var(--navy-main); }
.nav-link.cta {
  background: var(--navy-main); color: var(--white);
  font-weight: 600; padding: 7px 16px;
  box-shadow: 0 2px 8px rgba(29,47,95,.35);
}
.nav-link.cta:hover { background: var(--navy-dark); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 32px; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; height: 2px; background: var(--navy-main); border-radius: 2px; transition: .3s;
}

/* ================================================================
   ヒーロー
   ================================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-main) 55%, var(--navy-mid) 100%);
  padding: 60px 20px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  position: relative;
}
.hero-eyebrow {
  font-size: 10px; letter-spacing: 3px; color: var(--navy-light);
  text-transform: uppercase; margin-bottom: 14px;
}
.hero-h1 {
  font-size: clamp(22px, 3.5vw, 32px); font-weight: 800;
  color: var(--white); line-height: 1.35; margin-bottom: 14px;
}
.hero-h1 em { color: var(--navy-light); font-style: normal; }
.hero-lead {
  font-size: 13px; color: rgba(255,255,255,.8);
  line-height: 1.8; margin-bottom: 24px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--white); color: var(--navy-dark);
  padding: 11px 22px; border-radius: 6px; font-size: 13px; font-weight: 700;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
}
.btn-hero-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.btn-hero-secondary {
  border: 1px solid rgba(255,255,255,.4); color: var(--white);
  padding: 11px 22px; border-radius: 6px; font-size: 13px;
  transition: background .2s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.1); }

/* ヒーロー右カラム：記事カードプレビュー */
.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius); padding: 14px;
  backdrop-filter: blur(4px);
}
.hero-card-label {
  font-size: 9px; color: var(--navy-light); letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 6px;
}
.hero-card-title { font-size: 12px; color: var(--white); font-weight: 600; line-height: 1.4; }

/* ================================================================
   メインレイアウト
   ================================================================ */
.main-wrap { max-width: var(--max-w); margin: 0 auto; padding: 48px 20px 80px; }

/* ── セクションヘッダー ── */
.sec-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.sec-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy-main); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(29,47,95,.35);
}
.sec-title { font-size: 18px; font-weight: 700; color: var(--navy-dark); }
.sec-rule { flex: 1; height: 1px; background: var(--border); }

section { margin-bottom: 56px; }

/* ── カードベース ── */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ================================================================
   ① サイトの目的
   ================================================================ */
.purpose-band {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: 1fr 220px; gap: 0;
  overflow: hidden;
}
.purpose-text { padding: 32px 36px; }
.purpose-text p {
  font-size: 14px; color: var(--text-sub); line-height: 1.9;
  margin-bottom: 14px;
}
.purpose-text p:last-of-type { margin-bottom: 20px; }
.purpose-text strong { color: var(--navy-dark); }
.btn-note-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy-main); color: var(--white);
  padding: 10px 20px; border-radius: 6px; font-size: 13px; font-weight: 600;
  box-shadow: 0 2px 10px rgba(29,47,95,.35);
  transition: background .2s, transform .2s;
}
.btn-note-link:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn-note-link svg { width: 14px; height: 14px; }

.purpose-note-panel {
  background: var(--navy-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 24px; text-align: center;
}
.note-logo-circle {
  width: 64px; height: 64px; background: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 900; color: var(--navy-dark);
  margin-bottom: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.purpose-note-panel p { font-size: 12px; color: var(--navy-light); line-height: 1.6; }
.purpose-note-panel a {
  display: inline-block; margin-top: 12px;
  background: var(--navy-light); color: var(--navy-dark);
  padding: 6px 16px; border-radius: 20px; font-size: 11px; font-weight: 600;
}

/* ================================================================
   ② 記事インデックス（マガジン風グリッド）
   ================================================================ */
.index-intro {
  font-size: 13px; color: var(--text-light); margin-bottom: 20px; padding-left: 2px;
}
.article-grid {
  display: grid;
  grid-template-columns: 5fr 3fr 3fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.art-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.art-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.art-card.featured { grid-row: 1 / 3; }

.art-thumb {
  width: 100%;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid));
  display: flex; align-items: flex-end; padding: 14px;
  position: relative; overflow: hidden;
}
.art-card.featured .art-thumb { height: 220px; }
.art-card:not(.featured) .art-thumb { height: 90px; }

.art-hearts {
  position: absolute; top: 10px; right: 12px;
  background: rgba(255,255,255,.2); color: var(--white);
  font-size: 10px; padding: 2px 8px; border-radius: 20px;
  backdrop-filter: blur(4px);
}
.art-num {
  position: absolute; bottom: 10px; left: 12px;
  background: rgba(0,0,0,.3); color: var(--white);
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px;
  font-family: monospace;
}

.art-info { padding: 14px; }
.art-tag {
  display: inline-block; background: var(--navy-pale); color: var(--navy-main);
  font-size: 10px; padding: 2px 8px; border-radius: 20px; margin-bottom: 7px;
}
.art-title {
  font-size: 13px; font-weight: 700; color: var(--text-main);
  line-height: 1.45; margin-bottom: 6px;
}
.art-card.featured .art-title { font-size: 15px; }
.art-desc {
  font-size: 11px; color: var(--text-sub); line-height: 1.65;
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; overflow: hidden;
}
.art-card.featured .art-desc { -webkit-line-clamp: 5; }
.art-meta { font-size: 10px; color: var(--text-light); margin-top: 8px; }
.art-link {
  display: inline-block; margin-top: 8px;
  font-size: 11px; color: var(--navy-main); font-weight: 600;
}
.art-link:hover { text-decoration: underline; }

.index-footer {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 20px; flex-wrap: wrap;
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--navy-main); color: var(--navy-main);
  padding: 9px 20px; border-radius: 6px; font-size: 12px; font-weight: 600;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--navy-pale); }
.btn-fill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy-main); color: var(--white);
  padding: 9px 20px; border-radius: 6px; font-size: 12px; font-weight: 600;
  box-shadow: 0 2px 10px rgba(29,47,95,.30);
  transition: background .2s, transform .2s;
}
.btn-fill:hover { background: var(--navy-dark); transform: translateY(-1px); }

/* ================================================================
   ③ 主要メッセージ（Principle）
   ================================================================ */
.principle-intro {
  font-size: 13px; color: var(--text-sub); margin-bottom: 20px; line-height: 1.8;
}
.principle-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.p-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 20px;
  border-top: 4px solid var(--navy-main);
  transition: transform .2s, box-shadow .2s;
}
.p-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.p-card-num {
  font-size: 32px; font-weight: 900; color: var(--navy-pale);
  line-height: 1; margin-bottom: 8px;
  font-family: 'Georgia', serif;
}
.p-card-title {
  font-size: 13px; font-weight: 700; color: var(--navy-dark);
  margin-bottom: 8px; line-height: 1.4;
}
.p-card-msg {
  font-size: 12px; color: var(--text-sub); line-height: 1.75;
  margin-bottom: 10px;
}
.p-card-source {
  font-size: 10px; color: var(--text-light);
}
.p-card-source a { color: var(--navy-main); }
.p-card-source a:hover { text-decoration: underline; }

.principle-footer { text-align: center; margin-top: 24px; }

/* ================================================================
   ④ デザインサンプル（知働化経営の哲学）
   ================================================================ */
.design-feature {
  background: linear-gradient(135deg, var(--navy-pale) 0%, var(--white) 60%);
  border-radius: var(--radius-lg); padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: start;
}
.pdf-showcase { display: flex; flex-direction: column; align-items: center; }
.pdf-cover-link {
  display: block; border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform .25s, box-shadow .25s;
}
.pdf-cover-link:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 40px rgba(29,47,95,.25); }
.pdf-cover-img {
  width: 180px; display: block;
}
.pdf-cover-label {
  background: var(--navy-dark); color: var(--navy-light);
  text-align: center; padding: 8px; font-size: 11px; font-weight: 600;
}
.pdf-dl-hint {
  margin-top: 10px; font-size: 11px; color: var(--text-light); text-align: center;
}
.pdf-dl-hint span { color: var(--navy-main); }

.design-desc-col {}
.design-label {
  display: inline-block; background: var(--navy-main); color: var(--white);
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 4px; margin-bottom: 12px;
}
.design-title {
  font-size: 20px; font-weight: 800; color: var(--navy-dark);
  margin-bottom: 14px; line-height: 1.35;
}
.design-body {
  font-size: 13px; color: var(--text-sub); line-height: 1.9; margin-bottom: 20px;
}
.design-body p { margin-bottom: 10px; }
.design-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ================================================================
   ⑤ お問い合わせ
   ================================================================ */
.contact-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.contact-card {
  background: var(--navy-dark); border-radius: var(--radius-lg);
  padding: 36px; text-align: center; color: var(--white);
}
.contact-icon { font-size: 40px; margin-bottom: 14px; }
.contact-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.contact-card p { font-size: 13px; color: var(--navy-light); line-height: 1.7; margin-bottom: 20px; }
.btn-contact {
  display: inline-block; background: var(--white); color: var(--navy-dark);
  padding: 12px 28px; border-radius: 8px; font-size: 13px; font-weight: 700;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
}
.btn-contact:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,.3); }
.contact-dest { font-size: 10px; color: var(--navy-light); margin-top: 10px; opacity: .7; }

.info-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.info-card h3 { font-size: 15px; font-weight: 700; color: var(--navy-dark); margin-bottom: 18px; }
.info-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--navy-pale);
  font-size: 12px; color: var(--text-sub);
}
.info-row:last-child { border-bottom: none; }
.info-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy-main); flex-shrink: 0; }
.info-row a { color: var(--navy-main); }
.info-row a:hover { text-decoration: underline; }

/* ================================================================
   フッター
   ================================================================ */
.site-footer {
  background: var(--navy-dark);
  color: var(--navy-light);
  text-align: center; padding: 28px 20px;
  font-size: 12px; line-height: 1.8;
}
.site-footer a { color: var(--navy-light); }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

/* ================================================================
   ページトップボタン
   ================================================================ */
.page-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-main); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  cursor: pointer; z-index: 50;
}
.page-top.visible { opacity: 1; pointer-events: auto; }
.page-top:hover { transform: translateY(-2px); }

/* ================================================================
   レスポンシブ（タブレット ≤ 768px）
   ================================================================ */
@media (max-width: 768px) {
  :root { --header-h: 56px; }

  .header-nav { display: none; }
  .hamburger { display: flex; }

  .mobile-nav {
    display: none; position: fixed; inset: 0; z-index: 90;
    background: var(--navy-dark); padding: 80px 32px 32px;
    flex-direction: column; gap: 4px;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    padding: 14px 0; font-size: 16px; color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .mobile-nav a.cta { color: var(--navy-light); font-weight: 700; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-cards { display: none; }
  .hero { padding: 40px 20px; }

  .purpose-band { grid-template-columns: 1fr; }
  .purpose-note-panel { padding: 24px; }

  .article-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: unset;
  }
  .art-card.featured { grid-row: unset; grid-column: 1 / 3; }

  .principle-grid { grid-template-columns: 1fr 1fr; }

  .design-feature { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .pdf-cover-img { width: 140px; }

  .contact-section { grid-template-columns: 1fr; }

  .main-wrap { padding: 32px 16px 60px; }
}

/* ================================================================
   ④ メディアカード（音声・動画）
   ================================================================ */
.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
.media-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
}
.media-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.media-icon-wrap {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.audio-icon {
  background: linear-gradient(135deg, var(--navy-main), var(--navy-mid));
  color: var(--white);
}
.video-icon {
  background: linear-gradient(135deg, #1a5276, var(--navy-light));
  color: var(--white);
}
.media-info { flex: 1; }
.media-type-label {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  color: var(--navy-light);
  background: var(--navy-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 10px;
}
.media-title {
  font-size: 15px; font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.5;
  margin-bottom: 10px;
}
.media-desc {
  font-size: 12px; color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 16px;
}
.media-cta {
  display: flex; gap: 10px; flex-wrap: wrap;
}
@media (max-width: 768px) {
  .media-grid { grid-template-columns: 1fr; }
  .media-card { padding: 20px 18px; }
}
@media (max-width: 480px) {
  .media-cta { flex-direction: column; }
  .media-card { flex-direction: column; align-items: flex-start; }
}

/* ================================================================
   レスポンシブ（スマートフォン ≤ 480px）
   ================================================================ */
@media (max-width: 480px) {
  .article-grid { grid-template-columns: 1fr; }
  .art-card.featured { grid-column: unset; }
  .principle-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .sec-title { font-size: 15px; }
  .design-cta { flex-direction: column; }
}
