/* ========================================
   MODERN STYLES FOR シンコトバ合同会社 WEBSITE
   ======================================== */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Noto Serif JP', serif;
  color: #2c3e50;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Modern Color Palette */
:root {
  --primary-blue: #994d30; /*#1f5191;*/
  --primary-white: #ffffff;
  --secondary-blue: #2980b9;
  --primary-orange: #e67e22;
  --secondary-orange: #f39c12;
  --dark-gray: #2c3e50;
  --light-gray: #ecf0f1;
  --medium-gray: #7f8c8d;
  --white: #ffffff;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.2);
  --shadow-dark: rgba(0, 0, 0, 0.3);
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  color: var(--medium-gray);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Modern Buttons */
.btn-modern, .btn-underline a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(31, 81, 145, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-modern::before, .btn-underline a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-modern:hover::before, .btn-underline a:hover::before {
  left: 100%;
}

.btn-modern:hover, .btn-underline a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(31, 81, 145, 0.4);
  color: white;
}

/* Modern Cards */
.col1-2, .col1-3, .col1-4 {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.col1-2 a, .col1-3 a, .col1-4 a {
  display: block;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-light);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  color: inherit;
  position: relative;
  transform: translateY(0);
}

.col1-2 a::before, .col1-3 a::before, .col1-4 a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(31, 81, 145, 0.1), rgba(230, 126, 34, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.col1-2 a:hover, .col1-3 a:hover, .col1-4 a:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 25px 60px rgba(31, 81, 145, 0.3);
  animation: cardBounce 0.6s ease-out;
}

.col1-2 a:hover::before, .col1-3 a:hover::before, .col1-4 a:hover::before {
  opacity: 1;
}

@keyframes cardBounce {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
  100% { transform: translateY(-15px) scale(1.03); }
}

/* Modern Images */
.img, .col1-2 .img, .col1-3 .img, .col1-4 .img {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.img img, .col1-2 .img img, .col1-3 .img img, .col1-4 .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  filter: brightness(1) saturate(1);
}

.col1-2 a:hover .img img, .col1-3 a:hover .img img, .col1-4 a:hover .img img {
  transform: scale(1.1) rotate(2deg);
  filter: brightness(1.1) saturate(1.2);
}

/* Overlay Effects */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(31, 81, 145, 0.7), rgba(230, 126, 34, 0.7));
  opacity: 0;
  transition: all 0.4s ease;
  transform: scale(1.1);
  pointer-events: none !important;
  z-index: -1;
}

.col1-2 a:hover .overlay, .col1-3 a:hover .overlay, .col1-4 a:hover .overlay {
  opacity: 1;
  transform: scale(1);
  animation: overlayRipple 0.6s ease-out;
  z-index: 0;
}

@keyframes overlayRipple {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Modern Sections */
.p-top, section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.p-top.top-section01, .service-pickup-block {
  background: linear-gradient(135deg, var(--light-gray) 0%, #bdc3c7 100%);
}

.p-top.top-section04 {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Floating Background Effects */
.p-top::before, section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(31, 81, 145, 0.1) 0%, transparent 70%);
  animation: rotateFloat 20s linear infinite;
}

.p-top::after, section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(31, 81, 145, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(230, 126, 34, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(31, 81, 145, 0.05) 0%, transparent 50%);
  animation: geometricFloat 15s ease-in-out infinite;
}

@keyframes rotateFloat {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes geometricFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* Modern Headers and Heading Areas */
.headingarea, .headingarea-noimg, .area-mv {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-gray) 100%);
  color: white;
  padding: 120px 0 80px 0;
  position: relative;
  overflow: hidden;
}

.headingarea::before, .headingarea-noimg::before, .area-mv::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.3), transparent);
  background-repeat: repeat;
  background-size: 150px 150px;
  animation: sparkle 4s linear infinite;
  z-index: 1;
}

@keyframes sparkle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-150px); }
}

.headingarea__tit, .headingarea-noimg__inner, .area-mv-text {
  position: relative;
  z-index: 2;
  text-align: center;
}

.headingarea__tit h1, .headingarea-noimg__inner h1, .area-mv-text h1 {
  color: white;
  background: none;
  -webkit-text-fill-color: white;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.headingarea__tit h1 span, .area-mv-text h1 span {
  display: block;
  font-size: 0.4em;
  color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
  letter-spacing: 0.2em;
}

.headingarea__tit p, .area-mv-text p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Modern Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-light);
  margin: 2rem 0;
}

table th, table td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid #f1f3f4;
}

table th {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: white;
  font-weight: 600;
  position: relative;
}

table th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-orange), var(--secondary-orange));
}

table tr:hover {
  background: linear-gradient(135deg, rgba(31, 81, 145, 0.05), rgba(230, 126, 34, 0.05));
}

/* Modern Form Elements */
input, textarea, select {
  padding: 12px 16px;
  border: 2px solid #e1e8ed;
  border-radius: 10px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(31, 81, 145, 0.1);
}

/* Service Pickup Block Styling */
.service-pickup-block .mark {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.service-pickup-img {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 4px 8px rgba(31, 81, 145, 0.3));
}

.service-pickup-title {
  font-size: 1.5rem;
  margin: 0;
}

/* Animation Classes */
.fadeInUp {
  animation: fadeInUp 0.8s ease-out;
}

.slideInLeft {
  animation: slideInLeft 0.8s ease-out;
}

.slideInRight {
  animation: slideInRight 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll Animations */
.scroll-animation {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.scroll-animation.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Navigation Banners */
.nv-bnr-outer, .bnr-field {
  margin: 2rem 0;
}

.bnr-field a {
  display: block;
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 25px var(--shadow-light);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  border-left: 4px solid var(--primary-blue);
}

.bnr-field a:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--shadow-medium);
  border-left-color: var(--primary-orange);
}

.bnr-field dt {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.bnr-field dd {
  color: var(--medium-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .p-top, section {
    padding: 60px 20px;
  }
  
  .col-set {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .col-set {
    flex-direction: column;
    align-items: center;
  }
  
  .col1-2, .col1-3, .col1-4 {
    max-width: 90%;
  }
  
  .headingarea, .headingarea-noimg, .area-mv {
    padding: 100px 20px 60px 20px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .btn-modern, .btn-underline a {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  table th, table td {
    padding: 15px 10px;
    font-size: 0.9rem;
  }
}

/* Glassmorphism Effects */
.glass-effect {
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
}

/* Content Area Styling */
.content {
  position: relative;
  z-index: 1;
}

.row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Modern Box Styling */
.box-a {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 40px var(--shadow-light);
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.box-a::before {
  /*content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-blue), var(--primary-orange));*/
}

/* Job Number Styling */
.job-num {
  color: var(--medium-gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.job-num.right {
  text-align: right;
}

/* Fix for services page tit-area padding */
.service-pickup-block .tit-area {
  padding: 20px 25px 20px 35px;
  position: relative;
  z-index: 2;
}

.service-pickup-block .tit-area p {
  margin: 0;
  line-height: 1.6;
}

/* Ensure clickability for service links */
.service-pickup-block .col1-2 a {
  position: relative;
  z-index: 10;
}

.service-pickup-block .mark {
  position: relative;
  z-index: 5;
}
