﻿/* ================================================
   Modern Design System for ちよやシステムサービス
   ================================================ */

/* CSS Variables for consistent theming */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --dark-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow-soft: 0 8px 32px rgba(31, 38, 135, 0.15);
  --shadow-hover: 0 12px 40px rgba(31, 38, 135, 0.25);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 16px;
  --border-radius-sm: 8px;
}

body {
  padding-bottom: 20px;
  background: linear-gradient(180deg, #f8f9fc 0%, #eef2f7 100%);
  min-height: 100vh;
}

/* Set padding to keep content from hitting the edges */
.body-content {
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 30px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
  white-space: normal;
}

/* ================================================
   Modern Navbar Styling
   ================================================ */
.navbar {
  background: var(--dark-gradient) !important;
  box-shadow: var(--shadow-soft);
  padding: 1rem 0;
  backdrop-filter: blur(10px);
}

.navbar .navbar-brand {
  font-family: "source-han-sans-japanese", sans-serif;
  font-style: normal;
  font-weight: 900;
  font-size: 17px;
  vertical-align: middle;
}

.navbar .navbar-brand small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  display: block;
  letter-spacing: 2px;
}

.navbar .navbar-brand a,
.navbar .navbar-brand a:visited {
  color: #fff;
  transition: var(--transition-smooth);
}

.navbar .navbar-brand a:hover {
  color: #a5b4fc;
  text-decoration: none;
  transform: translateY(-1px);
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  position: relative;
}

.navbar .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.navbar .nav-link i {
  margin-right: 0.3rem;
}

/* ================================================
   Hero Section (Top)
   ================================================ */
.top {
  height: auto;
  min-height: 280px;
  margin-bottom: 40px;
  border-radius: var(--border-radius);
  padding: 50px 40px;
  background: var(--primary-gradient);
  box-shadow: var(--shadow-soft);
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  overflow: hidden;
}

.top::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.top::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.top strong {
  font-size: 1.5em;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.top .text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

.top small {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1em;
}

.top hr {
  border-color: rgba(255, 255, 255, 0.3);
  margin: 2rem 0;
}

@media (max-width: 756px) {
  .top {
    min-height: 200px;
    padding: 30px 20px;
  }
  .top strong {
    font-size: 1.2em;
  }
  .menu .col-md-4 {
    margin: 0.75rem 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================
   Modern Menu Buttons
   ================================================ */
.menu {
  margin-bottom: 40px;
}

.menu .btn {
  background: var(--glass-bg);
  border: none;
  border-radius: var(--border-radius);
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  color: #4a5568;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.menu .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  transition: var(--transition-smooth);
  z-index: -1;
}

.menu .btn:hover {
  color: #fff;
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.menu .btn:hover::before {
  left: 0;
}

.menu .btn i {
  margin-right: 0.5rem;
  transition: var(--transition-smooth);
}

.menu .btn:hover i {
  transform: scale(1.2);
}

/* ================================================
   Footer Styling
   ================================================ */
footer {
  padding: 80px 0;
  color: #718096;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 60px;
}
/* general element */
/* bootstrap override */
/* jquery validate */
.error {
  color: #e53e3e;
  font-weight: 500;
}

/* ================================================
   Well / Card Component
   ================================================ */
.well {
  background: var(--glass-bg);
  padding: 32px 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  animation: fadeInUp 0.6s ease-out;
}

.well p {
  color: #4a5568;
  line-height: 1.8;
}

.well ul {
  color: #4a5568;
}

/* ================================================
   Modern Section Headings
   ================================================ */
h2 {
  font-weight: 700;
  color: #2d3748;
  margin: 40px 0 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid;
  border-image: var(--primary-gradient) 1;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

/* ================================================
   Modern Table Styling
   ================================================ */
.table {
  background: var(--glass-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: none;
  margin-bottom: 40px;
}

.table th {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #4a5568;
  font-weight: 600;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 1.25rem;
  vertical-align: middle;
}

.table td {
  border: none;
  border-bottom: 1px solid #f1f5f9;
  padding: 1rem 1.25rem;
  color: #4a5568;
  vertical-align: middle;
}

.table tbody tr {
  transition: var(--transition-smooth);
}

.table tbody tr:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
}

.table tbody tr:last-child td,
.table tbody tr:last-child th {
  border-bottom: none;
}

.table .head {
  display: inline-block;
  background: var(--primary-gradient);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 500;
  margin-right: 0.5rem;
}

.table ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.table ul li {
  margin-bottom: 0.5rem;
  color: #4a5568;
}

.table ul li:last-child {
  margin-bottom: 0;
}

/* other */
/* 強震モニタ */
.monitor {
  width: 370px;
  height: 520px;
}
.tenki {
  width: 100%;
  height: 1000px;
}

/* ================================================
   Request Form Table - Modernized
   ================================================ */
.form-table {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.form-table thead th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-bottom: none;
  font-weight: 600;
  padding: 1rem 1.25rem;
}

.form-table tbody th {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #4a5568;
  white-space: nowrap;
  vertical-align: middle;
  width: 24%;
  font-weight: 600;
}

.form-table tbody td {
  background: #fff;
}

.form-table tbody tr:hover td,
.form-table tbody tr:hover th {
  background-color: #fcfcfd;
}

.form-table .form-control {
  border-radius: var(--border-radius-sm);
  border: 2px solid #e2e8f0;
  padding: 0.75rem 1rem;
  transition: var(--transition-smooth);
}

.form-table .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-table .form-control-plaintext,
.form-table textarea {
  max-width: 100%;
}

.form-table .form-check {
  padding-left: 1.75rem;
}

.form-table .form-check-input:checked {
  background-color: #667eea;
  border-color: #667eea;
}

/* ================================================
   Badge Styling
   ================================================ */
.badge-danger,
.badge.bg-danger {
  background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%) !important;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
}

.badge {
  color: #fff;
}

/* ================================================
   Modern Button Styling
   ================================================ */
.btn-danger {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  padding: 1rem 2rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
}

.btn-secondary {
  background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
  border: none;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  padding: 1rem 2rem;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  transform: translateY(-2px);
}

/* ================================================
   Animation Utilities
   ================================================ */
.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}