/* ===================================
   お問い合わせページ専用スタイル
   =================================== */

/* パンくずナビ */
.breadcrumb-section {
    background: var(--bg-light);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
}

.breadcrumb-item.active {
    color: var(--text-color);
}

/* ページヘッダー */
.page-header {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-description {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* お問い合わせフォームセクション */
.contact-form-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.contact-form-wrapper {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.form-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* フォームスタイル */
.contact-form .form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.contact-form .form-label.required::after {
    content: " *";
    color: var(--danger-color);
    font-weight: bold;
}

.contact-form .form-label i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* フォーム入力要素 */
.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 144, 220, 0.25);
    outline: none;
}

.contact-form .form-control:hover,
.contact-form .form-select:hover {
    border-color: var(--primary-light);
}

/* textareaの特別スタイル */
.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* バリデーションスタイル */
.contact-form .form-control.is-valid,
.contact-form .form-select.is-valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.84-.84c.03-.03.03-.06 0-.09L1.8 4.46c-.03-.03-.06-.03-.09 0l-.84.84c-.03.03-.03.06 0 .09l1.34 1.34c.03.03.06.03.09 0zm4.4-4.4-.84.84c-.03.03-.03.06 0 .09l1.34 1.34c.03.03.06.03.09 0l.84-.84c.03-.03.03-.06 0-.09L6.8 2.33c-.03-.03-.06-.03-.09 0z'/%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);
}

.contact-form .form-control.is-invalid,
.contact-form .form-select.is-invalid {
    border-color: var(--danger-color);
    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 d='m5.8 4.6 1.4 1.4m0-1.4-1.4 1.4'/%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);
}

/* フィードバックメッセージ */
.invalid-feedback {
    display: block;
    font-size: 0.875rem;
    color: var(--danger-color);
    margin-top: 0.25rem;
}

.valid-feedback {
    display: block;
    font-size: 0.875rem;
    color: var(--success-color);
    margin-top: 0.25rem;
}

/* 文字数カウンター */
.form-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-align: right;
}

#messageCount {
    font-weight: 600;
}

/* チェックボックススタイル */
.contact-form .form-check {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-form .form-check-input {
    margin-top: 0.2rem;
    width: 1.2rem;
    height: 1.2rem;
}

.contact-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.contact-form .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 144, 220, 0.25);
}

.contact-form .form-check-label {
    margin-left: 0.5rem;
    line-height: 1.5;
}

.contact-form .form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-form .form-check-label a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* 送信ボタン */
.contact-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 8px;
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 144, 220, 0.3);
}

.contact-form .btn-primary:active {
    transform: translateY(0);
}

.contact-form .btn-primary:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ローディングインジケーター */
#loadingIndicator {
    padding: 2rem;
}

#loadingIndicator .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* 会社連絡先情報セクション */
.contact-info-section {
    padding: 4rem 0;
    background: white;
}

.contact-info-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-section .section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.contact-info-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info-card .card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.contact-info-card .card-title i {
    margin-right: 0.5rem;
}

.info-item {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.info-item strong {
    color: var(--text-color);
    display: inline-block;
    min-width: 80px;
}

.info-item small {
    display: block;
    margin-top: 0.25rem;
    margin-left: 80px;
}

/* レスポンシブ対応 */
@media (max-width: 991.98px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 2rem 0;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .contact-form-section {
        padding: 3rem 0;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .form-title {
        font-size: 1.3rem;
    }
    
    .contact-info-section {
        padding: 3rem 0;
    }
    
    .contact-info-card {
        margin-bottom: 2rem;
    }
    
    .info-item strong {
        min-width: 70px;
    }
    
    .info-item small {
        margin-left: 70px;
    }
}

@media (max-width: 575.98px) {
    .contact-form-wrapper {
        margin: 0 0.5rem;
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .form-header {
        margin-bottom: 2rem;
    }
    
    .contact-form .btn-primary {
        width: 100%;
        padding: 1rem;
    }
    
    .info-item {
        font-size: 0.9rem;
    }
    
    .info-item strong {
        display: block;
        min-width: auto;
        margin-bottom: 0.25rem;
    }
    
    .info-item small {
        margin-left: 0;
    }
}

/* アニメーション効果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

.contact-info-card {
    animation: fadeInUp 0.6s ease-out;
}

.contact-info-card:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-info-card:nth-child(2) {
    animation-delay: 0.2s;
}

/* フォーカス時のアクセシビリティ向上 */
.contact-form .form-control:focus,
.contact-form .form-select:focus,
.contact-form .form-check-input:focus,
.contact-form .btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ハイコントラストモード対応 */
@media (prefers-contrast: high) {
    .contact-form .form-control,
    .contact-form .form-select {
        border-width: 3px;
    }
    
    .contact-form .form-control:focus,
    .contact-form .form-select:focus {
        border-width: 3px;
        box-shadow: none;
    }
}

/* ダークモード対応の準備 */
@media (prefers-color-scheme: dark) {
    .contact-form-wrapper {
        background: var(--dark-bg, #2d3748);
        color: var(--dark-text, #e2e8f0);
    }
    
    .contact-form .form-control,
    .contact-form .form-select {
        background-color: var(--dark-input-bg, #4a5568);
        border-color: var(--dark-border, #68738d);
        color: var(--dark-text, #e2e8f0);
    }
}

/* ===================================
   高度なアラートシステム用スタイル
   =================================== */

/* アラートサイズバリエーション */
.alert-small {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.alert-large {
    padding: 1.5rem;
    font-size: 1.05rem;
}

/* アラートコンテンツ */
.alert-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.alert-message {
    flex: 1;
    line-height: 1.5;
}

/* アクションボタンエリア */
.alert-actions {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.alert-success .alert-actions {
    border-top-color: rgba(25, 135, 84, 0.2);
}

.alert-danger .alert-actions {
    border-top-color: rgba(220, 53, 69, 0.2);
}

.alert-warning .alert-actions {
    border-top-color: rgba(255, 193, 7, 0.2);
}

/* 成功メッセージの詳細表示 */
.success-content {
    width: 100%;
}

.success-details {
    background: rgba(25, 135, 84, 0.1);
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.success-details div {
    display: flex;
    align-items: center;
}

.success-details i {
    width: 16px;
    text-align: center;
    color: var(--success-color);
}

/* プログレスバーのカスタマイズ */
.alert .progress {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.alert-info .progress-bar {
    background-color: rgba(255, 255, 255, 0.8);
}

/* フォーム無効化オーバーレイ */
.form-disabled-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 10;
}

.overlay-content {
    padding: 2rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 固定位置アラートのレスポンシブ対応 */
@media (max-width: 767.98px) {
    .alert[style*="position: fixed"] {
        left: 10px !important;
        right: 10px !important;
        max-width: none !important;
        transform: none !important;
    }

    .alert[style*="bottom: 20px"] {
        bottom: 10px !important;
        right: 10px !important;
        left: 10px !important;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .success-details {
        background: rgba(25, 135, 84, 0.2);
        color: #e2e8f0;
    }

    .form-disabled-overlay {
        background: rgba(45, 55, 72, 0.95);
    }

    .overlay-content {
        background: #2d3748;
        color: #e2e8f0;
    }
}

/* アニメーション効果の強化 */
@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes alertPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.alert.show {
    animation: alertSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.alert-danger.show,
.alert-warning.show {
    animation: alertSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1),
               alertPulse 2s ease-in-out;
}

/* アクセシビリティ強化 */
.alert:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .alert {
        border-width: 2px;
        border-style: solid;
    }

    .alert-success {
        border-color: #198754;
    }

    .alert-danger {
        border-color: #dc3545;
    }

    .alert-warning {
        border-color: #ffc107;
    }

    .alert-info {
        border-color: #0dcaf0;
    }
}
/* ===================================
   会社連絡先情報セクション強化スタイル
   =================================== */

/* セクション全体 */
.contact-info-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.contact-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* セクションタイトル */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 基本情報カード */
.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-info-card .card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bg-light);
    display: flex;
    align-items: center;
}

.contact-info-card .card-title i {
    font-size: 1.2rem;
}

/* 情報アイテム */
.info-item {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item strong {
    color: var(--text-color);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.info-item code {
    background: var(--bg-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

/* 営業ステータスバッジ */
#businessStatus {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* マップアクション */
.map-actions .btn {
    transition: all 0.3s ease;
}

.map-actions .btn:hover {
    transform: translateY(-2px);
}

/* 追加情報セクション */
.additional-info-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.section-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
}

/* 情報パネル */
.info-panel {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.panel-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bg-light);
    display: flex;
    align-items: center;
}

.panel-content {
    line-height: 1.6;
}

.info-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.info-value {
    color: var(--text-muted);
}

/* お問い合わせ方法 */
.contact-method .method-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.contact-method .method-item:hover {
    background: #e3f2fd;
}

.contact-method .method-item:last-child {
    margin-bottom: 0;
}

.contact-method .method-item i {
    margin-top: 0.25rem;
    font-size: 1.1rem;
}

.contact-method .method-item strong {
    margin-bottom: 0.25rem;
}

/* CTAセクション */
.contact-cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(52, 144, 220, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-actions .btn {
    margin: 0.5rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cta-actions .btn-primary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.cta-actions .btn-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-actions .btn-outline-primary {
    border: 2px solid white;
    color: white;
}

.cta-actions .btn-outline-primary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* レスポンシブ対応 */
@media (max-width: 991.98px) {
    .section-title {
        font-size: 1.8rem;
    }

    .contact-info-card {
        margin-bottom: 2rem;
    }

    .additional-info-section {
        margin-top: 2rem;
        padding-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .contact-info-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .contact-info-card {
        padding: 1.5rem;
    }

    .contact-cta-section {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-actions .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }

    .info-row {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .map-actions .btn {
        display: block;
        width: 100%;
        margin: 0.25rem 0;
    }

    .contact-method .method-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-method .method-item i {
        margin-bottom: 0.5rem;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .contact-info-section {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    }

    .contact-info-card,
    .info-panel {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .contact-method .method-item {
        background: #4a5568;
    }

    .contact-method .method-item:hover {
        background: #2b6cb0;
    }
}
