/* =====================================================
   CSS Variables
   ===================================================== */
:root {
  --primary: #F29600;
  --primary-dark: #d98600;
  --secondary: #005ca2;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --white: #fff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --transition: 0.3s ease;
}

/* =====================================================
   Reset & Base
   ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================================================
   Header
   ===================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-accent {
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  background-size: 200% 100%;
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
}

.logo img {
  height: 40px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.company-name {
  font-size: 14px;
  font-weight: 500;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.lang-switch {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch a {
  color: var(--text-muted);
}

.lang-switch a.active,
.lang-switch a:hover {
  color: var(--primary);
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary);
  color: var(--white);
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
}

.contact-btn:hover {
  background: var(--primary-dark);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* Navigation */
.nav {
  border-top: 1px solid var(--gray-200);
  padding: 0 30px;
}

.nav-list {
  display: flex;
}

.nav-list li {
  flex: 1;
  position: relative;
  text-align: center;
}

.nav-list a {
  display: block;
  padding: 18px 25px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.nav-list a:hover {
  color: var(--primary);
  background: var(--gray-50);
}

.nav-list li::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: var(--gray-200);
}

.nav-list li:last-child::after {
  display: none;
}

/* =====================================================
   Hero Slider (Swiper)
   ===================================================== */
.hero {
  margin-top: 130px;
  padding-top: 15px;
  overflow: hidden;
}

.hero-slider {
  padding-bottom: 50px;
  overflow: hidden;
}

.hero-slider .swiper-wrapper {
  align-items: center;
}

.hero-slider .swiper-slide {
  width: 70%;
  opacity: 0.5;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-slider .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slider .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-slider .swiper-pagination {
  position: relative;
  bottom: auto;
  margin-top: 20px;
}

.hero-slider .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--gray-300);
  opacity: 1;
}

.hero-slider .swiper-pagination-bullet-active {
  background: var(--primary);
}

/* =====================================================
   Alert
   ===================================================== */
.alert {
  padding: 25px 0;
}

.alert-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 18px 30px;
  background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.alert-box i {
  display: none;
}

.alert-box strong {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  padding: 4px 12px;
  background: var(--danger);
  color: var(--white);
  border-radius: 3px;
}

.alert-box p {
  font-size: 16px;
  color: #991b1b;
  margin: 0;
  font-weight: 500;
}

/* =====================================================
   Section Common
   ===================================================== */
.section-header {
  margin-bottom: 30px;
}

.section-header.center {
  text-align: center;
}

.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
}

.section-title,
.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
}

/* =====================================================
   News
   ===================================================== */
.news {
  padding: 60px 0;
}

.news-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--gray-200);
}

.news-tabs .tab {
  padding: 12px 15px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
}

.news-tabs .tab:hover {
  color: var(--primary);
}

.news-tabs .tab.active {
  color: var(--secondary);
}

.news-tabs .tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--secondary);
}

.news-list {
  border-top: 1px solid var(--gray-200);
  min-height: 350px;
}

.news-item {
  border-bottom: 1px solid var(--gray-200);
}

.news-item a {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 10px;
}

.news-item a:hover {
  background: var(--gray-50);
}

.news-item a:hover .title {
  color: var(--secondary);
}

.news-item time {
  font-size: 14px;
  color: var(--text-muted);
  min-width: 120px;
  white-space: nowrap;
}

.news-item .badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid;
  border-radius: 3px;
  min-width: 110px;
  text-align: center;
  white-space: nowrap;
}

/* Badge Colors */
.badge.blue { color: var(--secondary); border-color: var(--secondary); }
.badge.red { color: var(--danger); border-color: var(--danger); }
.badge.green { color: #16a34a; border-color: #16a34a; }
.badge.purple { color: #7c3aed; border-color: #7c3aed; }
.badge.orange { color: var(--primary); border-color: var(--primary); }
.badge.pink { color: #ec4899; border-color: #ec4899; }
.badge.teal { color: #14b8a6; border-color: #14b8a6; }
.badge.indigo { color: #6366f1; border-color: #6366f1; }
.badge.gray { color: var(--text-muted); border-color: var(--gray-300); }

/* Badge by category name */
.badge.important { color: #dc2626; border-color: #dc2626; }
.badge.notice { color: #2563eb; border-color: #2563eb; }
.badge.blog { color: #16a34a; border-color: #16a34a; }
.badge.recruit-news { color: #7c3aed; border-color: #7c3aed; }
.badge.press { color: #ea580c; border-color: #ea580c; }

.news-item .title {
  flex: 1;
  font-size: 14px;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  padding-top: 20px;
}

.sns {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sns span {
  font-size: 14px;
  font-weight: 500;
}

.sns-icons {
  display: flex;
  gap: 10px;
}

.sns-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gray-100);
  border-radius: 50%;
  color: var(--text-light);
}

.sns-icons a:hover {
  background: var(--primary);
  color: var(--white);
}

.more-link {
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.more-link:hover {
  color: var(--primary);
}

/* =====================================================
   Business
   ===================================================== */
.business {
  display: flex;
  min-height: 450px;
}

.business-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  padding: 40px;
}

.business-inner {
  max-width: 400px;
}

.business-inner p {
  margin: 20px 0 30px;
  color: var(--text-light);
  line-height: 1.8;
}

.business-video {
  flex: 1;
  display: flex;
  align-items: center;
}

.business-video video {
  width: 100%;
  height: auto;
}

/* Button */
.btn {
  display: inline-block;
  padding: 10px 40px;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  border-radius: 30px;
  border: 2px solid var(--primary);
}

.btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn i {
  margin-left: 8px;
}

/* =====================================================
   Solutions
   ===================================================== */
.solutions {
  padding: 80px 0;
  background: var(--gray-50);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.solution-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
}

.solution-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.solution-card:nth-child(1) { transition-delay: 0.1s; }
.solution-card:nth-child(2) { transition-delay: 0.2s; }
.solution-card:nth-child(3) { transition-delay: 0.3s; }
.solution-card:nth-child(4) { transition-delay: 0.4s; }

.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.solution-card:hover .card-img img {
  transform: scale(1.1);
}

.solution-card:hover h3 {
  color: var(--primary);
}

.card-img {
  height: 280px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
}

.solution-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  transition: var(--transition);
}

.card-link {
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}

.card-link i {
  margin-left: 5px;
  font-size: 11px;
}

.solution-card:hover .card-link {
  color: var(--primary);
}

/* =====================================================
   Topics
   ===================================================== */
.topics {
  padding: 80px 0 120px;
  background: linear-gradient(135deg, var(--primary) 0%, #f5a623 100%);
}

.topics .section-header {
  margin-bottom: 40px;
}

.topics .section-label {
  color: var(--white);
}

.topics .section-title {
  color: var(--white);
}

.topic-slide {
  display: flex !important;
  align-items: center;
  gap: 60px;
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.topic-img {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.topic-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.topic-content {
  flex: 1;
  padding: 20px 0;
}

.topic-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.topic-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
}

.topic-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 30px;
}

.topics-slider {
  padding-bottom: 70px;
}

.topics-slider .swiper-pagination {
  bottom: 0;
}

.topics-slider .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--gray-300);
}

.topics-slider .swiper-pagination-bullet-active {
  background: var(--primary);
}

.topics-slider .swiper-button-prev,
.topics-slider .swiper-button-next {
  z-index: 10;
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow);
  top: auto;
  bottom: 0;
}

.topics-slider .swiper-button-prev {
  left: auto;
  right: 70px;
}

.topics-slider .swiper-button-next {
  left: auto;
  right: 10px;
}

.topics-slider .swiper-button-prev::after,
.topics-slider .swiper-button-next::after {
  color: var(--primary);
  font-size: 20px;
}

.topics-slider .swiper-button-prev:hover,
.topics-slider .swiper-button-next:hover {
  background: var(--primary);
}

.topics-slider .swiper-button-prev:hover::after,
.topics-slider .swiper-button-next:hover::after {
  color: var(--white);
}

/* =====================================================
   About
   ===================================================== */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 50px;
}

.about-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
  transition: var(--transition);
}

.about-card:hover::before {
  background: linear-gradient(180deg, rgba(242, 150, 0, 0.3) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.about-img {
  height: 350px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.about-img--company {
  background-image: url('/themes/default/assets/image/cp2.png');
}

.about-img--sustainability {
  background-image: url('/themes/default/assets/image/furniture.jpg');
}

.about-img--future {
  background-image: url('/themes/default/assets/image/eco.jpg');
}

.about-card:hover .about-img {
  transform: scale(1.1);
}

.about-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  z-index: 2;
}

.about-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 15px;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.about-card:hover h3 {
  transform: translateY(0);
}

.about-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease 0.1s;
}

.about-card .read-more::after {
  content: "\f061";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 11px;
  transition: transform 0.3s ease;
}

.about-card:hover .read-more {
  opacity: 1;
  transform: translateY(0);
}

.about-card:hover .read-more::after {
  transform: translateX(5px);
}

/* =====================================================
   Feature
   ===================================================== */
.feature {
  position: relative;
  padding: 140px 0;
  display: flex;
  align-items: center;
  min-height: 500px;
}

.feature-img {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 65%;
  height: 520px;
  overflow: visible;
}

.feature-img::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #f5a623 100%);
  z-index: -1;
}

.feature-img img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: flex-end;
}

.feature-box {
  width: 65%;
  background: var(--white);
  padding: 60px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-right: -140px;
}

.feature-box h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.feature-box p {
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 30px;
}

/* =====================================================
   SDGs
   ===================================================== */
.sdgs {
  position: relative;
  padding: 120px 0;
  background: url('/themes/default/assets/image/eco.jpg') center/cover no-repeat;
  text-align: center;
}

.sdgs-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.sdgs-content {
  position: relative;
  z-index: 1;
}

.sdgs-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.sdgs-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.sdgs-text {
  font-size: 16px;
  color: var(--white);
  line-height: 1.8;
  margin-bottom: 30px;
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
  background: var(--gray-50);
  padding: 60px 0 30px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 15px;
}

.footer-company {
  font-weight: 600;
  margin-bottom: 15px;
}

.footer-info address {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

.footer-nav {
  display: flex;
  gap: 60px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-light);
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-sns {
  display: flex;
  gap: 12px;
}

.footer-sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gray-200);
  border-radius: 50%;
  color: var(--text-light);
}

.footer-sns a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--gray-200);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 25px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1024px) {
  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .about-img {
    height: 280px;
  }

  .about-card h3 {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .header-top {
    padding: 12px 20px;
  }

  .header-right {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav {
    display: none;
  }

  .nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav.open .nav-list {
    flex-direction: column;
  }

  .nav.open .nav-list li::after {
    display: none;
  }

  .hero {
    margin-top: 65px;
  }

  .hero-slider .swiper-slide {
    width: 100%;
    opacity: 1;
    transform: none;
  }

  .hero-slider .swiper-slide img {
    height: auto;
  }

  .alert-box {
    flex-direction: column;
    text-align: center;
  }

  .news-tabs {
    flex-wrap: wrap;
  }

  .news-item a {
    flex-wrap: wrap;
    gap: 10px;
  }

  .news-item .title {
    width: 100%;
    flex: none;
  }

  .news-footer {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .business {
    flex-direction: column;
    min-height: auto;
  }

  .business-video {
    height: 300px;
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .topics-bg {
    width: 100%;
    clip-path: none;
  }

  .topics-title {
    font-size: 36px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-img {
    height: 250px;
  }

  .about-card-content {
    padding: 25px;
  }

  .about-card h3 {
    font-size: 20px;
  }

  .feature-row {
    flex-direction: column;
    gap: 30px;
  }

  .footer-main {
    flex-direction: column;
    gap: 40px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
