
.profile-bar {
  display: flex;
  align-items: center;
  gap: 20px;
}
.profile-avatar img {
  width: 120px;
  height: 120px;
  object-fit: cover;       /* crops nicely if image aspect ratio isn’t square */
  border-radius: 50%;      /* makes it circular */
  display: block;          /* removes inline spacing */
}
.profile-name {
  margin: 0;          /* remove default bottom margin */
  font-size: 1.8rem;  /* optional: adjust size */
  line-height: 1.2;   /* tighter spacing */
}
.profile-title {
  margin: 4px 0 0 0;  /* small gap on top only */
  font-size: 1rem;
  line-height: 1.3;
}
.profile-title span {
  display: inline-block;
  margin-right: 4px;
}
.profile-location {
  margin: 2px 0 0 0;  /* even smaller top gap */
  font-size: 0.9rem;
  color: #666;        /* optional: lighter color */
}
#sns-placeholder {
    margin-top: 2rem; /* adjust as you like */
}

.profile-tools {
  margin-top: 6px;
}

.section-heading {
    font-size: 1rem;
  line-height: 1.3;
  margin-top: 2px;
  font-weight: 600;
  margin-bottom: 12px;
}
.tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* heading left, button right */
  cursor: pointer; /* optional: entire area clickable */
}

.tool-header h3 {
  margin: 0;
  font-size: 1rem;
}

.tool-header button {
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.tool-header button svg {
  transition: transform 0.3s ease;
}

.tool-group {
  margin-bottom: 20px;
}

.tool-category {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.tool-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tool {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #444;
}

.tool svg {
  width: 22px;
  height: 22px;
  fill: #888;
  transition: fill 0.2s ease, transform 0.2s ease;
}

.tool:hover svg {
  fill: var(--accent-color, #111);
  transform: scale(1.1);
}

/* Desktop (default) */
#toggle-tools {
  display: none;
}
#tools-container {
  display: block; /* always visible */
}

@media screen and (max-width: 768px) {
  .profile-bar {
    flex-direction: row; /* or column if desired */
    gap: 12px;
  }

  .profile-avatar img {
    width: 75px;
    height: 75px;
  }

  /* Stack all sections vertically */
  .profile-contact {
    order: 2;  /* moves SNS below tools on mobile if desired */
    justify-content: space-between;
  }

  .profile-tools {
    order: 1;  /* tools first on mobile if you prefer */
  }
    #toggle-tools {
      display: inline-flex !important;
    background: white;
    border: 1px solid #000;
    padding: 5px;
  }
  #tools-container.hidden {
    display: none; /* hidden by default */
  }
}

