/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

html {
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  line-height: 1.8;
  background: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

a:focus-visible {
  outline: 2px solid #2c5530;
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible {
  outline: 2px solid #2c5530;
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.pc-only {
  display: inline;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  transform: translateY(-100%);
  animation: headerSlideDown 0.8s 0.3s ease forwards;
}

@keyframes headerSlideDown {
  to {
    transform: translateY(0);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
}

.footer-logo-img {
  height: 36px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 700;
  list-style: none;
}

.nav-list a {
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2c5530;
  transition: width 0.3s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-cta {
  background: #2c5530;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700;
  transition: transform 0.3s, box-shadow 0.3s !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44,85,48,0.3);
  opacity: 1 !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #333;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('images/maruo-05.jpg') center/cover no-repeat;
  transform: scale(1.1);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% {
    transform: scale(1.1) translate(0, 0);
  }
  100% {
    transform: scale(1.15) translate(-1%, -1%);
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.35) 50%, rgba(44,85,48,0.4) 100%);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, #fff, transparent);
  z-index: 2;
}

/* Hero particles */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255,215,0,0.3);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) rotate(720deg);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 60px 0 100px;
  color: #fff;
}

/* Hero staggered entrance */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2c5530;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  animation: heroFadeUp 0.8s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-badge-logo {
  height: 28px;
  width: auto;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 1s 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  border-radius: 2px;
  animation: underlineExpand 0.8s 2s ease forwards;
}

@keyframes underlineExpand {
  to {
    width: 100%;
  }
}

.hero-text {
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 1s 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 1s 1.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-stats {
  display: flex;
  gap: 48px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 1s 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.2;
}

.stat-number small {
  font-size: 1rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: #e8960c;
  color: #fff;
  box-shadow: 0 4px 16px rgba(232,150,12,0.3);
}

.btn-primary:hover {
  background: #d4870a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,150,12,0.4);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  opacity: 1;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* Pulse CTA animation */
.mid-cta .btn-primary,
.hero-actions .btn-primary {
  animation: pulse 2s ease-in-out infinite;
  animation-delay: 3s;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(232,150,12,0.3);
  }
  50% {
    box-shadow: 0 4px 30px rgba(232,150,12,0.6);
  }
}

/* ===== Section Common ===== */
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: #2c5530;
  position: relative;
}

.section-title.white {
  color: #fff;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 48px;
}

/* Section title animation */
.section-title.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-title.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-subtitle.animate-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s 0.2s ease, transform 0.7s 0.2s ease;
}

.section-subtitle.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for grid items */
.stagger-1 { transition-delay: 0.1s !important; }
.stagger-2 { transition-delay: 0.2s !important; }
.stagger-3 { transition-delay: 0.3s !important; }
.stagger-4 { transition-delay: 0.4s !important; }
.stagger-5 { transition-delay: 0.5s !important; }
.stagger-6 { transition-delay: 0.6s !important; }

/* ===== Problem ===== */
.problem {
  padding: 80px 0;
  background: #f8f7f4;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 40px 0 36px;
}

.problem-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}

.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.problem-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: inline-block;
  transition: transform 0.3s;
}

.problem-card:hover .problem-icon {
  transform: scale(1.2) rotate(5deg);
}

.problem-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.problem-answer {
  text-align: center;
  font-size: 1.3rem;
  color: #2c5530;
  margin-top: 8px;
}

/* ===== Service ===== */
.service {
  padding: 80px 0;
  background: #f8f7f4;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
  background: #fff;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.service-img {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.service-card:hover .service-img::after {
  left: 100%;
}

.service-img-1 { background: linear-gradient(135deg, #e8d5b7, #c9a96e); }
.service-img-2 { background: linear-gradient(135deg, #b7d5e8, #6ea9c9); }
.service-img-3 { background: linear-gradient(135deg, #b7e8c9, #6ec98a); }
.service-img-4 { background: linear-gradient(135deg, #d5b7e8, #a96ec9); }
.service-img-5 { background: linear-gradient(135deg, #e8e0b7, #c9b86e); }
.service-img-6 { background: linear-gradient(135deg, #e8b7b7, #c96e6e); }

.service-icon-large {
  font-size: 2.4rem;
  filter: grayscale(0.2);
  transition: transform 0.4s;
}

.service-card:hover .service-icon-large {
  transform: scale(1.15);
}

.service-card h3 {
  font-size: 1.1rem;
  padding: 16px 20px 8px;
  color: #2c5530;
}

.service-card p {
  font-size: 0.88rem;
  color: #555;
  padding: 0 20px 20px;
  line-height: 1.7;
}

/* ===== Merit ===== */
.merit {
  padding: 80px 0;
}

.merit-list {
  margin-top: 48px;
}

.merit-item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid #e8e4dc;
  position: relative;
}

.merit-item:last-child {
  border-bottom: none;
}

.merit-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: #2c5530;
  opacity: 0.45;
  min-width: 60px;
  line-height: 1;
  transition: opacity 0.5s, transform 0.5s;
}

.merit-item:hover .merit-number {
  opacity: 0.8;
  transform: scale(1.1);
}

.merit-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #2c5530;
}

.merit-body p {
  font-size: 0.95rem;
  color: #555;
}

/* Merit decorative line animation */
.merit-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #2c5530, transparent);
  transition: width 0.6s ease;
}

.merit-item.visible::after {
  width: 100%;
}

/* ===== Flow ===== */
.flow {
  padding: 80px 0;
}

.flow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.flow-step {
  text-align: center;
  flex: 1;
  max-width: 180px;
}

.flow-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2c5530;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  transition: transform 0.4s, box-shadow 0.4s;
}

.flow-step:hover .flow-num {
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(44,85,48,0.3);
}

.flow-step h3 {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #2c5530;
}

.flow-step p {
  font-size: 0.85rem;
  color: #666;
}

.flow-arrow {
  color: #2c5530;
  opacity: 0.6;
  font-size: 1.2rem;
  margin-top: 14px;
  animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}

/* ===== Plan Sample ===== */
.plan-sample {
  padding: 80px 0;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.plan-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.4s;
}

.plan-card:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

.plan-card a {
  display: block;
}

.plan-img {
  width: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.plan-card:hover .plan-img {
  transform: scale(1.04);
}

.plan-caption {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #555;
  text-align: center;
}

/* ===== Works ===== */
.works {
  padding: 80px 0;
  background: #f8f7f4;
}

.works-category {
  text-align: center;
  font-size: 1.2rem;
  color: #2c5530;
  margin-top: 40px;
  margin-bottom: 4px;
}

.works-category:first-of-type {
  margin-top: 16px;
}

.works-category-note {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 20px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.work-card {
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

.work-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f0f0ec;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-photo {
  transform: scale(1.05);
}

.work-info {
  padding: 14px 16px;
}

.work-info h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: #2c5530;
}

.work-detail {
  font-size: 0.85rem;
  color: #888;
}

.mid-cta {
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
}

/* ===== Company ===== */
.company {
  padding: 80px 0;
  background: #f8f7f4;
}

.company-table {
  max-width: 700px;
  margin: 36px auto 0;
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #e8e4dc;
  font-size: 0.95rem;
}

.company-table th {
  width: 140px;
  color: #2c5530;
  font-weight: 700;
  background: #f8f7f4;
}

/* Table row animation */
.company-table tr {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.company-table.visible tr {
  opacity: 1;
  transform: translateX(0);
}

.company-table.visible tr:nth-child(1) { transition-delay: 0.05s; }
.company-table.visible tr:nth-child(2) { transition-delay: 0.1s; }
.company-table.visible tr:nth-child(3) { transition-delay: 0.15s; }
.company-table.visible tr:nth-child(4) { transition-delay: 0.2s; }
.company-table.visible tr:nth-child(5) { transition-delay: 0.25s; }
.company-table.visible tr:nth-child(6) { transition-delay: 0.3s; }
.company-table.visible tr:nth-child(7) { transition-delay: 0.35s; }
.company-table.visible tr:nth-child(8) { transition-delay: 0.4s; }
.company-table.visible tr:nth-child(9) { transition-delay: 0.45s; }

/* ===== Contact ===== */
.contact {
  padding: 100px 0;
  background: linear-gradient(135deg, #2c5530, #3a7d44);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Contact decorative background shapes */
.contact::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  animation: floatShape 8s ease-in-out infinite alternate;
}

.contact::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  animation: floatShape 6s 2s ease-in-out infinite alternate;
}

@keyframes floatShape {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(20px, -20px);
  }
}

.contact-text {
  text-align: center;
  font-size: 1.05rem;
  margin-bottom: 40px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.contact-staff {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.staff-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 24px 28px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: transform 0.4s, background 0.4s;
}

.staff-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.15);
}

.staff-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
  transition: border-color 0.3s, transform 0.3s;
}

.staff-card:hover .staff-photo {
  border-color: rgba(255,215,0,0.6);
  transform: scale(1.05);
}

.staff-info {
  flex: 1;
}

.staff-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.staff-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.staff-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.staff-note {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 8px;
  line-height: 1.5;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #ffd700 !important;
  background: rgba(255,215,0,0.15);
  padding: 8px 16px;
  border-radius: 8px;
  min-height: 48px;
  transition: background 0.3s, transform 0.3s !important;
}

.phone-link:hover {
  background: rgba(255,215,0,0.25);
  transform: scale(1.02);
  opacity: 1 !important;
}

.email-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffd700 !important;
  background: rgba(255,215,0,0.1);
  padding: 8px 12px;
  border-radius: 6px;
  word-break: break-all;
  min-height: 48px;
  transition: background 0.3s, transform 0.3s !important;
}

.email-link:hover {
  background: rgba(255,215,0,0.2);
  transform: scale(1.02);
  opacity: 1 !important;
}

/* ===== Footer ===== */
.footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 48px 0 24px;
}

.footer-inner {
  text-align: center;
}

.footer .logo {
  display: inline-flex;
  margin-bottom: 8px;
}

.footer-info p {
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  font-size: 0.85rem;
}

.footer-links a {
  padding: 8px 4px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
  opacity: 1;
}

.copyright {
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ===== Counter Animation ===== */
.stat-number .count-value {
  display: inline;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-bg {
    animation: none;
    transform: scale(1);
  }

  .fade-in,
  .fade-in-left,
  .fade-in-right,
  .scale-in {
    opacity: 1;
    transform: none;
  }

  .hero-badge,
  .hero-title,
  .hero-text,
  .hero-actions,
  .hero-stats {
    opacity: 1;
    transform: none;
  }
}

/* ===== Tablet ===== */
@media (max-width: 1024px) {
  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-steps {
    flex-wrap: wrap;
    gap: 16px;
  }

  .flow-arrow {
    display: none;
  }

  .flow-step {
    flex: 0 0 calc(33% - 16px);
  }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .pc-only {
    display: none;
  }

  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    margin-bottom: 32px;
  }

  .problem,
  .service,
  .merit,
  .flow,
  .plan-sample,
  .works,
  .area,
  .company {
    padding: 56px 0;
  }

  .contact {
    padding: 72px 0;
  }

  .nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

  .nav.open {
    display: block;
    animation: menuSlideDown 0.3s ease;
  }

  @keyframes menuSlideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid #eee;
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-list a {
    display: block;
    padding: 14px 8px;
    min-height: 48px;
  }

  .nav-list a::after {
    display: none;
  }

  .header-inner {
    height: 64px;
  }

  .logo-img {
    height: 36px;
  }

  .hero {
    padding-top: 64px;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-text {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-img {
    height: 80px;
  }

  .service-icon-large {
    font-size: 2rem;
  }

  .flow-steps {
    flex-direction: column;
    align-items: center;
  }

  .flow-step {
    flex: none;
    max-width: 280px;
    width: 100%;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .staff-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 12px;
  }

  .staff-contacts {
    justify-content: center;
    flex-direction: column;
  }

  .phone-link,
  .email-link {
    width: 100%;
    justify-content: center;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .footer-links a {
    padding: 10px 8px;
  }

  .merit-item {
    flex-direction: column;
    gap: 8px;
  }

  .company-table th {
    width: 100px;
    padding: 12px 10px;
    font-size: 0.85rem;
  }

  .company-table td {
    padding: 12px 10px;
    font-size: 0.85rem;
  }

  .contact::before,
  .contact::after {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .problem-card {
    padding: 20px 16px;
  }

  .hero {
    min-height: 80vh;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }
}
