/*
 * toknow.jp Master Stylesheet
 * Source: index.html
*/

/* マスターデザインシステム 変数 */
:root {
  --primary-green: #16a34a;
  --primary-green-dark: #15803d;
  --primary-green-light: #22c55e;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --background: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
}
/* 基本設定 */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: "Noto Sans JP", sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ヘッダー */
header {
  position: sticky !important;
  top: 0 !important;
  z-index: 60 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid var(--border) !important;
  transition: all 0.3s ease !important;
}

/* 汎用クラス */
.section-spacing {
  padding: 6rem 1rem;
}
@media (max-width: 768px) {
  .section-spacing {
    padding: 4rem 1rem;
  }
}
.focus-ring:focus,
button:focus,
a:focus {
  outline: 3px solid var(--primary-green) !important;
  outline-offset: 2px !important;
  border-radius: 4px !important;
}

/* タイポグラフィ */
.heading-xl {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.heading-lg {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}
/* 下層ページ用見出し */
.heading-main {
  font-size: clamp(2.25rem, 8vw, 3.75rem);
  font-weight: 900;
  line-height: 1.2;
  text-wrap: balance;
}
.heading-sub {
  font-size: clamp(1.8rem, 7vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

/* ボタン & カード */
.btn {
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--primary-green-light)
  );
  color: white;
  border-radius: 12px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3) !important;
}
.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--primary-green-dark),
    var(--primary-green)
  );
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.4) !important;
}

/* モバイルメニュー */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: white;
  z-index: 70;
  padding: 20px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  transition: all 0.3s ease;
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu a {
  display: block !important;
  padding: 16px 20px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}
.mobile-menu a:hover {
  background: #f8fafc !important;
  color: #16a34a !important;
}

/* 下層ページ用スタイル */
.subpage-section {
  padding: 4rem 1rem;
}
@media (min-width: 1024px) {
  .subpage-section {
    padding: 6rem 1rem;
  }
}
.card {
  background-color: var(--surface);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  border: 1px solid var(--border);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
