/* 全体のスタイル */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* ボタングループのスタイル */
/* ボタングループのスタイル */
.btn-group {
    flex-wrap: wrap;
}

.btn-group .btn {
    margin-bottom: 5px;
}

/* 配線図関連のスタイル */
#wire-diagram-container {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    min-height: 150px;
}

.wire-line {
    position: relative;
    height: 3px;
    margin: 30px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.wire-line:hover {
    opacity: 0.8;
}

.wire-label {
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 14px;
    white-space: nowrap;
    color: black; /* 常に黒色 */
}

/* カラーパレットのスタイル */
#color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.color-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.selected {
    outline: 3px solid #007bff;
}

.no-wire {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 30px;
    padding: 0 10px;
    border-radius: 15px;
    font-size: 12px;
}

/* 見積もり結果のスタイル */
#total-price, #tax-included-price {
    font-size: 1.1em;
}

#unit-price {
    font-size: 1.1em;
    color: #0d6efd;
}

/* 設計指示書のスタイル */
#instruction-sheet {
    background-color: white;
}

/* メールフォームのスタイル */
#email-image-preview img {
    max-width: 100%;
    max-height: 300px;
    border: 1px solid #ddd;
    padding: 5px;
    margin-top: 10px;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .btn-group {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 5px;
    }
    
    .btn-group .btn {
        margin-right: 0;
        border-radius: 0.25rem !important;
    }
}

/* 入力検証エラー */
.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}


.btn-rounded {
  min-width: 6.5em;
  width: auto;
  border-radius: 5px;
  border: 2px solid #1d2088;
  background-color: #ffffff;
  margin: 10px 5px;
  color: #1d2088;
}

.c_ttl {
  line-height: 1.46;
  font-size: 3.6rem;
  font-weight: 900;
  color: #1d2088;
  position: relative;
  padding-bottom: .5em;
  border-bottom: solid .5rem #F7F7F7;
  margin: 19rem 0 9rem;
}
