/* tools-desktop.css - tools.html デスクトップ版スタイル */

/* ツールページ特有のスタイル */
.tool-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(42, 45, 45, 0.7) 0%, rgba(30, 33, 33, 0.8) 100%);
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(129, 212, 250, 0.1);
  border: 1px solid rgba(129, 212, 250, 0.2);
  backdrop-filter: blur(10px);
  margin-bottom: 3rem;
}

main.tool-container {
  padding: 2rem 1.5rem;
}

/* タブメニュー */
.tool-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(129, 212, 250, 0.1);
}

.tool-tab {
  padding: 0.85rem 2rem;
  background: rgba(42, 45, 45, 0.6);
  border: 2px solid rgba(129, 212, 250, 0.2);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tool-tab:hover {
  background: rgba(90, 143, 192, 0.25);
  color: var(--clr-text);
  border-color: rgba(129, 212, 250, 0.4);
  transform: translateY(-2px);
}

.tool-tab.active {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  color: var(--clr-bg);
  border-color: var(--clr-accent);
  box-shadow:
    0 6px 20px rgba(90, 143, 192, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

/* ツールセクション */
.tool-section {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.tool-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.tool-card {
  background: var(--clr-card);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(129, 212, 250, 0.1);
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  border-color: rgba(129, 212, 250, 0.5);
  box-shadow: 0 8px 20px rgba(129, 212, 250, 0.15);
  transform: translateY(-5px);
}

.tool-icon {
  font-size: 3rem;
  margin-bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  margin-left: auto;
  margin-right: auto;
  color: var(--clr-accent);
  transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
  transform: scale(1.15);
}

.tool-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 1;
  color: var(--clr-accent);
  letter-spacing: 0.05em;
}

.tool-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-size: 0.98rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
  color: var(--clr-bg);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 20px rgba(90, 143, 192, 0.4);
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.tool-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
  z-index: -1;
}

.tool-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(90, 143, 192, 0.6);
  background: linear-gradient(135deg, #5a8fd4 0%, #9dd6fa 100%);
}

.tool-btn:hover::before {
  left: 100%;
}

.tool-btn:active {
  transform: translateY(-1px);
}
