﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* カードのホバーエフェクト */
.card.shadow-sm:hover {
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
  transition: box-shadow 0.3s ease-in-out;
}

/* ナビゲーションリンクの改善 */
.nav-link {
  transition: all 0.2s ease-in-out;
}

.nav-link:hover {
  color: #0056b3 !important;
}

/* フッターのスタイル */
.footer {
  background-color: #f8f9fa;
}

/* プライマリボタンの改善 */
.btn-primary {
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

/* ステップインジケーター */
.step-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0;
  position: relative;
}

.step-indicator-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  max-width: 200px;
}

.step-indicator-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: #dee2e6;
  z-index: 0;
}

.step-indicator-item.active:not(:last-child)::after,
.step-indicator-item.completed:not(:last-child)::after {
  background-color: #0d6efd;
}

.step-indicator-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  position: relative;
  z-index: 1;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.step-indicator-item.active .step-indicator-circle {
  background-color: #0d6efd;
  color: white;
  border-color: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.step-indicator-item.completed .step-indicator-circle {
  background-color: #198754;
  color: white;
  border-color: #198754;
}

.step-indicator-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6c757d;
  text-align: center;
  font-weight: 500;
}

.step-indicator-item.active .step-indicator-label {
  color: #0d6efd;
  font-weight: 600;
}

.step-indicator-item.completed .step-indicator-label {
  color: #198754;
}

@media (max-width: 768px) {
  .step-indicator {
    padding: 1rem 0;
  }
  
  .step-indicator-item {
    max-width: 120px;
  }
  
  .step-indicator-circle {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }
  
  .step-indicator-label {
    font-size: 0.75rem;
  }
  
  .step-indicator-item:not(:last-child)::after {
    top: 16px;
  }
}

/* ナビゲーションのタイトル画像の最大サイズを固定 */
.navbar-brand img {
    max-height: 40px; /* 必要に応じて調整 */
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 小さい画面ではさらに小さくする */
@media (max-width: 576px) {
    .navbar-brand img {
        max-height: 32px;
    }
}