/* ============================================================================
 * 看護職のみちさき案内 (michisakiannai) - メインスタイルシート
 * ブランドコンセプト：「静かなキャリア案内所」
 * モチーフ：標識・道しるべ / トークン化・レスポンシブ・アクセシビリティ対応
 * ============================================================================ */

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

:root {
  /* ブランドコアカラー (デザイントークン) */
  --brand-dark: #0E6F66;       /* 濃青緑: CTA, 重要強調, 優先見出し */
  --brand-main: #2A9D94;       /* 主色青緑: アイコン, 装飾, リンク */
  --brand-mint: #B9DCD3;       /* 淡いミント: 枠線, セクション区切り */
  --brand-bg: #E9F3F1;         /* 薄青緑背景: 6分類セクション等 */
  --brand-offwhite: #FAF8F3;   /* オフホワイト: 背景差分・カード */
  --brand-beige: #EDE6D6;      /* 補助ベージュ: 標識アクセント等 */

  /* 役割別セマンティクスカラー */
  --primary-color: var(--brand-dark);
  --primary-hover: #074741;
  --link-color: #2A9D94;
  --link-hover: #0E6F66;
  --heading-color: #0c4a44;
  --text-main: #1e293b;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --surface-color: #ffffff;
  --surface-border: #d2e4e0;

  /* バッジステータス表示 */
  --badge-yes-bg: #e6f4f1;
  --badge-yes-text: #0E6F66;
  --badge-partial-bg: #fffbeb;
  --badge-partial-text: #92400e;
  --badge-no-bg: #f1f5f9;
  --badge-no-text: #64748b;
  --badge-unknown-bg: #f3e8ff;
  --badge-unknown-text: #6b21a8;

  /* 角丸・影・枠線トークン */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-subtle: 0 2px 8px rgba(14, 111, 102, 0.05);
  --shadow-card: 0 4px 12px rgba(14, 111, 102, 0.06);
  --shadow-hover: 0 6px 18px rgba(14, 111, 102, 0.10);

  /* タイポグラフィ */
  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Noto Sans JP', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--brand-offwhite);
  color: var(--text-main);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* リンクルール (非リンク見出しと明確に分離) */
a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--brand-main);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* ロゴ・ブランドロックアップ */
.site-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  color: inherit;
}

.site-logo-link:hover .site-name {
  color: var(--brand-main);
}

.brand-signpost-icon {
  flex-shrink: 0;
}

.site-title-group {
  display: flex;
  flex-direction: column;
}

.site-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.2;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.site-subtag {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  gap: 1rem;
}

.main-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.925rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand-dark);
  background: var(--brand-bg);
  text-decoration: none;
  font-weight: 700;
}

/* Breadcrumb */
.breadcrumb {
  padding: 0.85rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.5rem;
}

.breadcrumb li::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--text-light);
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--brand-dark);
}

/* Main Content Layout */
.site-main {
  flex: 1;
  padding: 1.5rem 0 3.5rem;
}

/* Top Hero Section (コンパクト・静かな案内所テーマ) */
.hero-wrapper {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-content {
  flex: 1;
  max-width: 620px;
}

.hero-lead-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-bg);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  border: 1px solid var(--brand-mint);
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.35;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.hero-visual {
  flex-shrink: 0;
  width: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Section Container & Section Headings */
.section-wrapper {
  margin-bottom: 2rem;
}

.section-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-subtle);
}

/* 背景リズムセクション (6分類専用の淡色背景) */
.section-pale-bg {
  background: var(--brand-bg);
  border: 1px solid var(--brand-mint);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* 6分類カードグリッド */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.method-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  transition: all 0.25 ease;
  box-shadow: var(--shadow-subtle);
  position: relative;
}

.method-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-main);
  box-shadow: var(--shadow-hover);
}

.method-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.method-card-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--brand-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
}

.method-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.35;
  transition: color 0.2s ease;
}

.method-card:hover .method-card-title {
  color: var(--brand-main);
}

.method-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.method-card-arrow {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-main);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* 当サイトの特長 3カード */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--brand-mint);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.feature-card-icon {
  width: 36px;
  height: 36px;
  background: var(--brand-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
}

.feature-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading-color); /* 非リンク見出し色 */
}

.feature-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CTA Button (単色・落ち着いたブランド青緑) */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 0.975rem;
  font-weight: 700;
  color: #ffffff !important;
  background-color: var(--brand-dark);
  border: 1px solid var(--brand-dark);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(14, 111, 102, 0.2);
  transition: all 0.2s ease;
  text-decoration: none !important;
  cursor: pointer;
}

.cta-button:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 111, 102, 0.3);
  color: #ffffff !important;
}

/* Service Detail Badges & Data Tables */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-yes { background: var(--badge-yes-bg); color: var(--badge-yes-text); }
.badge-partial { background: var(--badge-partial-bg); color: var(--badge-partial-text); }
.badge-no { background: var(--badge-no-bg); color: var(--badge-no-text); }
.badge-unknown { background: var(--badge-unknown-bg); color: var(--badge-unknown-text); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--surface-border);
}

.data-table th {
  background: var(--brand-offwhite);
  font-weight: 600;
  color: var(--heading-color);
  width: 32%;
}

.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: none;
}

/* Grid Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

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

.service-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-main);
  box-shadow: var(--shadow-hover);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex: 1;
}

/* Footer (淡青緑背景・明確な視覚区分) */
.site-footer {
  background-color: #f2f8f7;
  color: var(--text-main);
  border-top: 1px solid var(--brand-mint);
  padding: 2.25rem 0 2rem;
  margin-top: 3rem;
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 0.35rem;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list a {
  color: var(--brand-dark);
  font-weight: 500;
}

.footer-nav-list a:hover {
  color: var(--brand-main);
  text-decoration: underline;
}

.copyright {
  font-size: 0.825rem;
  color: var(--text-muted);
  border-top: 1px solid var(--brand-mint);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* モバイルレスポンシブ (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 0.85rem;
  }

  .header-inner {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .site-logo-link {
    gap: 0.4rem;
    min-width: 0;
    flex-shrink: 1;
  }

  .brand-signpost-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .site-title-group {
    min-width: 0;
  }

  .site-name {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }

  .site-subtag {
    display: none; /* モバイルは標識マーク＋サイト名に絞り高さを抑制 */
  }

  .main-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .main-nav a {
    font-size: 0.775rem;
    padding: 0.25rem 0.45rem;
    white-space: nowrap;
  }

  .hero-wrapper {
    padding: 1.5rem 1.25rem;
  }

  .hero-inner {
    flex-direction: column;
    gap: 1.25rem;
  }

  .hero-title {
    font-size: 1.45rem;
  }

  .hero-visual {
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
  }

  .method-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section-pale-bg,
  .section-card {
    padding: 1.25rem 1rem;
  }

  .footer-nav-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem 1rem;
  }

  .copyright {
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
  }
}

/* ====================================================
   Affiliate Placement UI Component (静かなキャリア案内所スタイル)
   ==================================================== */
.affiliate-placement {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  background-color: #f4f8f7;
  border: 1px solid var(--brand-mint, #B9DCD3);
  border-radius: var(--radius-md, 8px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  box-sizing: border-box;
}

.affiliate-placement__label {
  align-self: flex-start;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--brand-dark, #0E6F66);
  background-color: rgba(14, 111, 102, 0.08);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.affiliate-placement__content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Placement Variants */
.affiliate-placement--text {
  padding: 0.85rem 1.25rem;
  align-items: flex-start;
}

.affiliate-placement--horizontal {
  width: 100%;
  max-width: 360px;
  margin: 1.75rem auto;
}

.affiliate-placement--rectangle {
  width: 100%;
  max-width: 400px;
  margin: 1.75rem auto;
}

/* Local Dummy Ad Component (CSS-only, 0 external requests) */
.dummy-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #ffffff;
  border: 1px dashed #b5d5cc;
  border-radius: 6px;
  color: var(--brand-dark, #0E6F66);
  font-size: 0.85rem;
  font-weight: 500;
  box-sizing: border-box;
  padding: 0.5rem;
  user-select: none;
}

.dummy-ad--text {
  width: 100%;
  padding: 0.75rem 1rem;
  align-items: flex-start;
  text-align: left;
  border-style: solid;
  border-color: #d1e3de;
  color: #1e3e38;
}

.dummy-ad--horizontal {
  width: 234px;
  height: 60px;
  max-width: 100%;
}

.dummy-ad--rectangle {
  width: 300px;
  height: 250px;
  max-width: 100%;
}

.dummy-ad__dimensions {
  font-size: 0.75rem;
  color: var(--text-muted, #555555);
  margin-top: 0.2rem;
}

/* ====================================================
   Phase 3b UI Foundation Component Classes
   ==================================================== */
.editorial-text {
  line-height: 1.8;
  font-size: 0.95rem;
  color: var(--text-main);
}

.editorial-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.system-detail-card {
  padding: 1rem 1.25rem;
  background: var(--brand-bg);
  border-left: 4px solid var(--brand-dark);
  border-radius: var(--radius-sm);
}

.system-detail-card__name {
  font-weight: 700;
  color: var(--brand-dark);
  font-size: 0.95rem;
}

.system-detail-card__desc {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-top: 0.25rem;
  line-height: 1.6;
}

.misconception-grid {
  display: grid;
  gap: 1rem;
}

.example-grid {
  display: grid;
  gap: 1rem;
}

.example-card {
  padding: 1.25rem;
  background: var(--brand-offwhite);
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-mint);
}

.example-card--warning {
  background: #fffbeb;
  border-color: #fef3c7;
}

.example-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.example-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--brand-dark);
}

.example-card__title--warning {
  color: #b45309;
}

.example-card__subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.example-card__body {
  font-size: 0.9rem;
  color: var(--text-main);
  margin: 0.5rem 0 0.75rem 0;
}

.example-card__notice {
  font-size: 0.85rem;
  background: #ffffff;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--brand-mint);
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.example-card__notice--warning {
  border-color: #fde68a;
  color: #92400e;
}

.example-card__tags {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.checklist-grid {
  display: grid;
  gap: 1rem;
}

.checklist-card {
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-mint);
}

.checklist-card--alert {
  background: #fff8f6;
  border-color: #fecdd3;
}

.checklist-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--brand-dark);
}

.checklist-card__title--alert {
  color: #e11d48;
}

.checklist-card__body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-main);
}

.checklist-intro {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

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

.related-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-mint);
  text-decoration: none !important;
  color: inherit;
  transition: all 0.2s ease;
}

.related-card:hover {
  border-color: var(--brand-main);
  background: var(--brand-bg);
  transform: translateY(-2px);
}

.related-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--brand-dark);
}

.related-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.offering-list {
  display: grid;
  gap: 0.75rem;
}

.offering-item {
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  background: var(--brand-offwhite);
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-mint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-nav-footer {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.official-source-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.official-source-list {
  list-style: none;
  padding: 0;
}

.official-source-item {
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--brand-offwhite);
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-mint);
}

.official-source-title {
  font-weight: 600;
  color: var(--brand-dark);
}

.official-source-publisher {
  font-size: 0.85rem;
  font-weight: normal;
  color: var(--text-muted);
}

.official-source-meta {
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.official-source-date {
  margin-left: 1rem;
  color: var(--text-muted);
}

.official-source-last-check {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

.policy-content {
  line-height: 1.85;
  font-size: 0.95rem;
  color: var(--text-main);
}

.service-card__meta {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.service-card__action {
  margin-top: 1rem;
}

.service-card__link {
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}



