@media (max-width: 768px) {
  .site-header {
    height: 70px;
    padding: 0 12px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    overflow: hidden;      
  }

  .logo {
    flex: 0 0 auto;
    height: 100%;         
    display: flex;
    align-items: center; 
  }
  .logo img {
    max-height: 50px; 
    width: auto;
    height: auto;
    display: block;
  }

  .auth-menu,
  .auth-buttons {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin: 3px 0px 3px 0px;
  }

  .user-name {
    max-width: 40vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
    margin-right: 0.5rem;
  }

  .user-icon {
    font-size: 2.2rem;
    margin-right: 0.9rem;
  }

  .login-btn {
    padding: 7px 10px;
    font-size: 0.9rem;
    margin: 0.1rem 1.0rem 0.1rem 0.2rem ;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .mobile-footbar {
    height: 56px;
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f9f9f9;
    border-top: 1px solid #ccc;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
    z-index: 1000;
    font-family: 'M PLUS Rounded 1c', sans-serif;
  }

  .mobile-footbar nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
  }

  .mobile-footbar nav a {
    text-align: center;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    flex: 1;
    transition: color 0.3s ease;
  }

  .mobile-footbar nav a:hover {
    color: #00bcd4; /* 青系：行動促進 */
  }


  .mobile-footbar nav i {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
    transition: transform 0.3s ease, color 0.3s ease;
  }

  .mobile-footbar nav span {
    display: block;
    font-size: 12px;
  }

  .mobile-footbar nav a:hover i {
    transform: translateY(-2px);
    color: #00bcd4;
  }

}

@media (max-width: 768px) {
  main {
    margin-left: 0;
    margin-right: 0;
    margin-top: 70px;
    margin-bottom: 60px;
  }
}


@media (max-width: 768px) {
  .layout-footer {
    padding: 16px 8px;
    font-size: 13px;
    text-align: center;
  }

  .layout-footer nav {
    display: flex;
    flex-wrap: wrap;         /* 折り返し可能に */
    justify-content: center;
    gap: 6px;               /* リンク間の余白 */
  }

  .layout-footer a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;     /* 改行させない */
  }
}

.pc-footer {
  display: block;
}
.sp-footer {
  display: none;
}

@media (max-width: 768px) {
  .pc-footer {
    display: none;
  }
  .sp-footer {
    display: block;
  }
}