/* tech-scout.css ― tech-scout.org トップページ（index.html）から分離。内容は無改変。 */

    /* --- 変数定義 --- */
    :root {
      --bg-dark: #0f172a;
      --primary: #3b82f6;
      --accent: #8b5cf6;
      --cyan: #06b6d4;
      --amber: #f59e0b; 
      --silver: #cbd5e1;
      --gold: #ffd700;
      --text-main: #f1f5f9;
      --text-sub: #94a3b8;
      --glass-bg: rgba(255, 255, 255, 0.03);
      --glass-border: rgba(255, 255, 255, 0.1);
    }

    body {
      font-family: 'Noto Sans JP', sans-serif;
      background-color: var(--bg-dark);
      color: var(--text-main);
      margin: 0;
      line-height: 1.8;
      background-image: 
        linear-gradient(rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.95)),
        url('https://www.transparenttextures.com/patterns/circuit-board.png');
      background-attachment: fixed;
    }

    h1, h2, h3 { font-family: 'M PLUS Rounded 1c', sans-serif; margin: 0; }
    .tech-font { font-family: 'Orbitron', sans-serif; letter-spacing: 1px; }
    .messy-font { font-family: 'Rock Salt', cursive; color: var(--amber); }

    a { text-decoration: none; color: inherit; transition: 0.3s; }
    ul { list-style: none; padding: 0; margin: 0; }

    /* --- ヘッダー --- */
    header {
      position: fixed;
      top: 0;
      width: 100%;
      padding: 1rem 0;
      z-index: 100;
      background: rgba(15, 23, 42, 0.9);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--glass-border);
    }

    nav {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 2rem;
    }

    .logo {
      font-size: 1.5rem;
      font-weight: 800;
      background: linear-gradient(to right, var(--silver), var(--cyan));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      letter-spacing: 1px;
    }

    nav ul { display: flex; gap: 2rem; }
    nav li a { font-weight: 700; font-size: 0.95rem; color: var(--text-sub); }
    nav li a:hover { color: var(--cyan); }

    /* --- ヒーローセクション --- */
    .hero {
      padding: 10rem 0 6rem;
      text-align: center;
    }

    .hero h1 {
      font-size: 4rem;
      line-height: 1.2;
      margin-bottom: 2rem;
      color: #fff;
    }

    .hero h1 .highlight {
      display: block;
      font-size: 5rem;
      transform: rotate(-3deg);
      margin-top: 0.5rem;
      text-shadow: 4px 4px 0px rgba(245, 158, 11, 0.5);
    }

    /* 辞書風定義 */
    .definition-box {
      max-width: 600px;
      margin: 0 auto 3rem;
      background: rgba(0,0,0,0.3);
      border-left: 5px solid var(--amber);
      padding: 1.5rem;
      text-align: left;
      font-family: monospace;
    }
    .definition-word { font-size: 1.5rem; color: var(--amber); font-weight: bold; }
    .definition-pronounce { color: #666; font-size: 0.9rem; margin-left: 10px; }
    .definition-desc { margin-top: 0.5rem; color: #ddd; }

    .btn-primary {
      display: inline-block;
      padding: 1rem 3rem;
      background: linear-gradient(90deg, var(--amber), var(--danger));
      color: white;
      font-weight: bold;
      border-radius: 50px;
      font-size: 1.1rem;
      box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    }
    .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6); }

    /* --- Awards --- */
    .awards {
      padding: 4rem 0;
      background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3), transparent);
    }
    .awards h2 { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: var(--gold); }
    .award-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
    
    .award-card {
      background: rgba(255, 215, 0, 0.05);
      border: 1px solid rgba(255, 215, 0, 0.3);
      border-radius: 12px;
      padding: 2rem;
      text-align: center;
      transition: 0.3s;
      position: relative;
    }
    .award-card:hover { transform: translateY(-5px); background: rgba(255, 215, 0, 0.1); }
    .award-icon { font-size: 3rem; margin-bottom: 1rem; color: var(--gold); }
    .award-card h3 { color: #fff; margin-bottom: 0.5rem; font-size: 1.2rem; }
    .award-card p { color: var(--text-sub); font-size: 0.9rem; margin: 0; }
    .award-tag { position: absolute; top: 0; left: 0; background: var(--gold); color: #000; font-weight: bold; font-size: 0.7rem; padding: 2px 10px; border-bottom-right-radius: 10px; }

    /* --- Projects --- */
    .projects { padding: 6rem 0; }
    .projects h2 { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: #fff; }
    
    .project-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 2rem;
    }

    .project-card {
      background: #1e293b;
      border: 1px solid var(--glass-border);
      border-radius: 16px;
      overflow: hidden;
      transition: 0.3s;
      display: flex;
      flex-direction: column;
      position: relative;
    }
    .project-card:hover { transform: translateY(-10px); border-color: var(--cyan); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

    .project-card.legacy { border: 1px solid rgba(203, 213, 225, 0.3); }
    .project-card.legacy:hover { border-color: var(--silver); box-shadow: 0 10px 30px rgba(203, 213, 225, 0.2); }

    .project-visual {
      height: 180px;
      background: linear-gradient(45deg, #1e293b, #0f172a);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }
    
    .project-visual i {
      font-size: 5rem;
      color: rgba(255,255,255,0.1);
      transition: 0.5s;
    }
    .project-card:hover .project-visual i { transform: scale(1.2) rotate(-10deg); color: var(--cyan); text-shadow: 0 0 20px rgba(6, 182, 212, 0.6); }
    .project-card.legacy:hover .project-visual i { color: var(--silver); text-shadow: 0 0 20px rgba(255, 255, 255, 0.6); }

    /* Status Badges */
    .status-badge {
      position: absolute;
      top: 15px;
      right: 15px;
      padding: 5px 12px;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: bold;
      color: #fff;
      box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    .status-live { background: var(--danger); animation: pulse 2s infinite; }
    .status-legacy { background: #475569; border: 1px solid var(--silver); color: var(--silver); }
    .status-wip { background: var(--amber); }

    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
      70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
      100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
    }

    .project-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
    .project-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; color: #fff; }
    .project-card p { font-size: 0.9rem; color: var(--text-sub); margin-bottom: 1.5rem; flex-grow: 1; }

    .tech-stack { margin-bottom: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
    .tech-tag { font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; background: rgba(255,255,255,0.1); color: var(--cyan); border: 1px solid rgba(6, 182, 212, 0.3); }
    .tech-tag.legacy { color: var(--silver); border-color: var(--silver); }

    .btn-small { display: inline-block; font-size: 0.9rem; color: var(--cyan); font-weight: bold; border: 1px solid var(--glass-border); padding: 0.5rem 1rem; border-radius: 8px; text-align: center; transition: 0.3s; }
    .btn-small:hover { background: var(--cyan); color: #000; border-color: var(--cyan); }
    .btn-disabled { opacity: 0.5; pointer-events: none; border-color: transparent; color: var(--text-sub); }

    /* --- Footer --- */
    footer {
      background: #020617;
      text-align: center;
      padding: 3rem 0;
      color: var(--text-sub);
      font-size: 0.9rem;
      border-top: 1px solid var(--glass-border);
    }

    /* --- Lectures (LEARN) --- */
    .lectures {
      padding: 6rem 0;
      background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.04), transparent);
    }
    .lectures h2 { text-align: center; font-size: 2.5rem; margin-bottom: 0.5rem; color: #fff; }
    .lectures .section-sub {
      text-align: center;
      color: var(--text-sub);
      max-width: 640px;
      margin: 0 auto 3.5rem;
      font-size: 1rem;
    }
    .lectures .section-sub .accent-text { color: var(--accent); font-weight: 700; }

    /* 2講義を「上下の対」として見せるスタック */
    .lecture-stack {
      max-width: 880px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
    }

    .lecture-card {
      position: relative;
      display: flex;
      align-items: center;
      gap: 1.75rem;
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      border-radius: 16px;
      padding: 2rem 2.25rem;
      transition: 0.3s;
      overflow: hidden;
    }
    .lecture-card::before {
      content: "";
      position: absolute;
      left: 0; top: 0; bottom: 0;
      width: 4px;
      background: var(--layer-color);
    }
    .lecture-card:hover {
      transform: translateY(-4px);
      border-color: var(--layer-color);
      box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    }

    /* 階層ラベル（SILICON / PCB） */
    .layer-tag {
      position: absolute;
      top: 0; right: 0;
      font-family: 'Orbitron', sans-serif;
      font-size: 0.65rem;
      letter-spacing: 1px;
      font-weight: 700;
      color: #000;
      background: var(--layer-color);
      padding: 3px 12px;
      border-bottom-left-radius: 10px;
    }

    .lecture-icon {
      flex-shrink: 0;
      width: 72px; height: 72px;
      border-radius: 14px;
      display: flex; align-items: center; justify-content: center;
      font-size: 2.2rem;
      color: var(--layer-color);
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--glass-border);
      transition: 0.3s;
    }
    .lecture-card:hover .lecture-icon {
      transform: scale(1.08) rotate(-6deg);
      text-shadow: 0 0 18px var(--layer-color);
    }

    .lecture-body { flex-grow: 1; min-width: 0; }
    .lecture-body .lecture-eyebrow {
      font-family: 'Orbitron', sans-serif;
      font-size: 0.72rem;
      letter-spacing: 1px;
      color: var(--layer-color);
      margin-bottom: 0.25rem;
    }
    .lecture-body h3 { font-size: 1.4rem; color: #fff; margin-bottom: 0.4rem; }
    .lecture-body p { font-size: 0.9rem; color: var(--text-sub); margin: 0 0 1rem; }

    .lecture-stack-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
    .lecture-stack-tags .tech-tag {
      font-size: 0.7rem; padding: 2px 8px; border-radius: 4px;
      background: rgba(255,255,255,0.06);
      color: var(--layer-color);
      border: 1px solid var(--layer-color);
    }

    .lecture-link {
      display: inline-flex; align-items: center; gap: 0.5rem;
      font-size: 0.9rem; font-weight: 700;
      color: var(--layer-color);
      border: 1px solid var(--glass-border);
      padding: 0.5rem 1.25rem;
      border-radius: 8px;
      transition: 0.3s;
    }
    .lecture-link:hover {
      background: var(--layer-color);
      color: #000;
      border-color: var(--layer-color);
    }

    /* 上下をつなぐ「階層」コネクタ */
    .layer-connector {
      display: flex;
      flex-direction: column;
      align-items: center;
      color: var(--text-sub);
      padding: 0.6rem 0;
      gap: 0.2rem;
    }
    .layer-connector i { font-size: 1.1rem; color: var(--accent); }
    .layer-connector span {
      font-family: 'Orbitron', sans-serif;
      font-size: 0.62rem;
      letter-spacing: 1px;
    }

    @media (max-width: 768px) {
      .hero h1 { font-size: 2.5rem; }
      .hero h1 .highlight { font-size: 3.5rem; }
      nav ul { display: none; }
      .lecture-card { flex-direction: column; text-align: center; align-items: center; gap: 1rem; }
      .lecture-card::before { width: 100%; height: 4px; bottom: auto; }
      .lecture-stack-tags { justify-content: center; }
    }
