    .media-section {
      max-width: 900px;
      margin: 0 auto;
      padding: 20px;
    }
    .media-row {
      display: flex;
      justify-content: center;
      gap: 20px;
      flex-wrap: wrap;
      margin-bottom: 20px;
    }
    .media-row.upper .media-card {
      flex: 1 1 calc(50% - 25px);
    }
    .media-row.lower .media-card {
      flex: 1 1 calc(33.333% - 25px);
    }
    .media-card {
      height: 160px;
      padding: 20px;
      border-radius: 16px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      text-align: center;
      text-decoration: none;
      display: flex;
      flex-direction: column;
      justify-content: center;
      position: relative;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      overflow: hidden;
      box-sizing: border-box;
    }
    .media-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }
    .media-card.fb {
      background-color: #1877F2;
      color: #fff;
    }
    .media-card.x {
      background-color: #1C1C1C;
      color: #fff;
    }
    .media-card.youtube {
      background-color: #FF0000;
      color: #fff;
    }

    .media-card.note::before,
    .media-card.video::before {
      content: "";
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      z-index: 0;
      opacity: 1;
    }
    .media-card.note::before {
       background: linear-gradient(135deg, #71eae6, #17dd7a); 
      /*background-image: linear-gradient(rgba(033,033,033,0.2), rgba(033,033,033,0.2)), url("img/250630_toc.png");*/
    }
    .media-card.video::before {
        background: #607d8b;
      /*background-image: linear-gradient(rgba(033,033,033,0.2), rgba(033,033,033,0.2)), url("img/250630_kokka.png");*/
    }
    .media-card.note > *,
    .media-card.video > * {
      position: relative;
      color: #fff;
      z-index: 1;
    }
    .media-card .title {
      font-size: 1.2rem;
      font-weight: bold;
      margin-bottom: 6px;
    }
    .media-card span {
      font-size: 0.95rem;
      line-height: 1.4;
      display: block;
      color: inherit;
    }
    .media-card .box {
      margin-bottom: 10px;
    }
    @media (max-width: 768px) {
      .media-card {
        flex: 1 1 100% !important;
      }
    }