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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  color: #333;
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}

img {
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* Container */
.container {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.content-wrapper {
  max-width: 75rem;
  margin: 0 auto;
}

/* Header */
.header {
  background-color: #ffffff;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 2.5rem;
  width: auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 500;
  color: #e60012;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-desktop a:not(.btn-primary) {
  color: #333;
  font-size: 1rem;
  transition: color 0.3s;
}

.nav-desktop a:not(.btn-primary):hover {
  color: #e60012;
}

.nav-desktop .btn-primary {
  background-color: #e60012;
  color: #ffffff;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
}

.nav-desktop .btn-primary:hover {
  background-color: #ffffff;
  color: #e60012;
  border-color: #e60012;
}

.menu-button {
  display: none;
  padding: 0.5rem;
  color: #333;
  -webkit-tap-highlight-color: transparent;
}

.nav-mobile {
  background-color: #ffffff;
  border-top: 0.0625rem solid #e5e7eb;
  padding: 1rem;
}

.nav-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-mobile button,
.nav-mobile a {
  text-align: left;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background-color 0.3s;
  display: block;
  width: 100%;
  color: #333;
  -webkit-tap-highlight-color: transparent;
}

.nav-mobile a:link,
.nav-mobile a:visited,
.nav-mobile a:active {
  color: #333;
}

.nav-mobile button:hover,
.nav-mobile a:hover {
  background-color: #f3f4f6;
}

.nav-mobile .btn-primary {
  background-color: #e60012;
  color: #ffffff;
  text-align: center;
}

.nav-mobile .btn-primary:link,
.nav-mobile .btn-primary:visited,
.nav-mobile .btn-primary:active {
  color: #ffffff;
}

.nav-mobile .btn-primary:hover {
  background-color: #ffffff;
  color: #e60012;
  border-color: #e60012;
}

/* Hero Section */
.hero-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-image: url('./images/hero-background-sp.png');
  background-size: auto 100%;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-start;
  min-height: 0;
  position: relative;
  padding-top: 11.25rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: 3rem;
  color: #1F2937;
  line-height: 1.2;
  text-shadow: 0 0.3rem 0.6rem rgba(0, 0, 0, 0.5);
}

.hero-title-accent {
  color: #e60012;
}

.hero-title-break {
  display: none;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #1F2937;
  line-height: 1.75;
  max-width: 29rem;
}

/* Section */
.section,
.contact-section {
  scroll-margin-top: 5rem;
}

.section {
  padding: 5rem 0;
}

.section-bg-white {
  background-color: #ffffff;
}

.section-bg-gray {
  background-color: #f7f7f7;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: #1f2937;
  margin-bottom: 3rem;
}

.section-title--service-list {
  margin-bottom: 2.25rem;
}

.section-title-accent {
  color: #e60012;
}


/* Strengths Section */
.strengths-grid-new {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.strength-card-new {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.375rem 0 rgba(0, 0, 0, 0.1);
  padding: 2rem 1.5rem;
  position: relative;
}

.strength-icon-wrapper {
  width: 4rem;
  height: 4rem;
  background-color: #e60012;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  padding: 1rem;
}

.strength-card-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.875;
  text-align: center;
  margin-bottom: 1.5rem;
  min-height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.strength-list {
  list-style: disc;
  padding-left: 1.5rem;
  color: #374151;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
}

.strength-list li {
  margin-bottom: 0;
  margin-left: 0;
}

/* Services Section */
.services-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.service-block {
  padding: 2rem;
  border-radius: 0.5rem;
}

.service-block-muted {
  background-color: #f1f1f1;
}

.service-section {
  margin-bottom: 3rem;
}

.service-section:last-child {
  margin-bottom: 0;
}

.service-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
}

.service-section-header::after {
  content: '';
  flex: 1;
  height: 0.1875rem;
  background-color: #E60012;
}

.service-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  white-space: nowrap;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.service-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: default;
  transition: transform 0.3s ease;
  height: 100%;
  width: 100%;
}

.service-card-link.service-card-link-active {
  cursor: pointer;
}

.service-card-link.service-card-link-active:hover {
  transform: translateY(-0.25rem);
}

.service-card {
  background-color: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  min-height: 21.25rem;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

.service-card-link.service-card-link-active:hover .service-card {
  background-color: #ffe6e6;
  box-shadow: 0 0.25rem 0.75rem rgba(230, 0, 18, 0.15);
}

.service-card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.8;
  pointer-events: none;
}

.service-card-icon img {
  width: 11.25rem;
  height: auto;
  display: block;
}

.service-card-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.service-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  flex: 1;
}

.service-list li {
  display: list-item;
  margin-bottom: 0.75rem;
  color: #374151;
  line-height: 1.6;
}

/* Use Case Section */
.usecases-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.usecase-card-new {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 0.625rem 0.9375rem -0.1875rem rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.usecase-header {
  padding: 2rem 1.5rem 0.75rem 1.5rem;
}

.usecase-badge-new {
  display: inline-block;
  background-color: #e60012;
  color: #ffffff;
  padding: 0.25rem 1rem;
  border-radius: 624.9375rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.usecase-title-new {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 2.25rem;
  min-height: 4.5rem;
}

.usecase-image-new {
  height: 13.3125rem;
  overflow: hidden;
  margin: 0 1.5rem;
  border-radius: 0.25rem;
}

.usecase-image-new img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.usecase-details {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.1875rem;
}

.usecase-section-new {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.usecase-section-title-new {
  font-size: 1rem;
  font-weight: 700;
  color: #353431;
}

.usecase-section-text-new {
  font-size: 0.875rem;
  color: #353431;
  line-height: 1.25rem;
}

.usecase-list-new {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.usecase-list-new li {
  font-size: 0.875rem;
  color: #374151;
  position: relative;
  padding-left: 1.3125rem;
}

.usecase-list-new li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #374151;
}

.usecase-result {
  background-color: #f1f1f1;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: auto;
  border-radius: 0.5rem;
}

.usecase-result-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #e60012;
  margin-bottom: 0.25rem;
}

.usecase-result-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.usecase-result-content p {
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
  line-height: 1.25rem;
  margin: 0;
}

/* News Section */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item {
  background-color: #f7f7f7;
  border-radius: 0.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.news-date {
  color: #6b7280;
  flex-shrink: 0;
}

.news-text {
  color: #1f2937;
  transition: color 0.2s ease;
}

.news-text:hover {
  color: #E60012;
}

/* Company Info Section */
.company-table-wrapper {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 0.625rem 0.9375rem -0.1875rem rgba(0, 0, 0, 0.1);
  overflow: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.company-table {
  background-color: #ffffff;
  width: 100%;
  min-width: 37.5rem;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 0.0625rem solid #e5e7eb;
}

.company-table tr:last-child {
  border-bottom: none;
}

.company-table th {
  background-color: #000;
  color: #ffffff;
  padding: 1.5rem;
  text-align: left;
  width: 12rem;
  vertical-align: top;
  font-weight: 500;
}

.company-table td {
  padding: 1.5rem;
}

.company-address {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.company-address svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #e60012;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.company-table ul {
  list-style: none;
}

.company-table ul li {
  margin-bottom: 0.5rem;
}

.company-certifications {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.certification-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pmark-logo {
  width: 2.125rem;
  height: 2.125rem;
  object-fit: contain;
}

/* Group Companies Section */
.group-companies-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.group-companies-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

.group-company-card {
  background-color: #f7f7f7;
  border-radius: 0.5rem;
  display: flex;
  align-items: stretch;
  padding: 1.75rem;
  min-height: 9.63675rem;
  position: relative;
  transition: all 0.3s ease;
}

.group-company-card:hover {
  transform: translateY(-0.25rem);
  background-color: #ffe6e6;
  box-shadow: 0 0.25rem 0.75rem rgba(230, 0, 18, 0.15);
}

.group-company-card-row-2 {
  min-height: 13.125rem;
}

.group-company-logo {
  width: 7.5625rem;
  height: 5.25rem;
  flex-shrink: 0;
  margin-right: 3.125rem;
  position: relative;
}

.group-logo-masked {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.5rem;
}

.group-logo-masked img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.group-company-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding-top: 0.25rem;
}

.group-company-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.6875rem;
  margin: 0;
}

.group-company-divider {
  width: 100%;
  height: 0.0625rem;
  background-color: #333333;
  margin: 0.1875rem 0;
}

.group-company-description {
  flex-grow: 1;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  line-height: 1.6rem;
  margin: 0;
}

.group-company-description p {
  margin: 0;
  line-height: 1.6rem;
}

.group-company-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  gap: 0.25rem;
  color: #e60012;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  margin-top: 1rem;
  padding-top: 0.5rem;
  transition: opacity 0.3s;
  text-decoration: none;
}

.group-company-link:hover {
  opacity: 0.8;
}

.group-company-link svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background: #E60012;
  color: #ffffff;
  text-align: center;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-text {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
}

.contact-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.3s;
  text-align: center;
}

.btn-primary {
  background-color: #e60012;
  color: #ffffff;
  border: 0.0625rem solid transparent;
}

.btn-primary:hover {
  background-color: #ffffff;
  color: #e60012;
  border-color: #e60012;
}

.btn-white {
  background-color: #fff;
  color: #e60012;
  border: 0.0625rem solid #fff;
}

.btn-white:hover {
  background-color: #e60012;
  color: #fff;
  border-color: #fff;
}

/* Footer */
.footer {
  color: #ffffff;
  background-color: #000;
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-section-label {
  font-weight: 500;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links li {
  margin-bottom: 0;
}

.footer-links button,
.footer-links a {
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: left;
  transition: color 0.3s;
}

.footer-links button:hover,
.footer-links a:hover {
  color: #e60012;
}

.footer-bottom {
  border-top: 0.0625rem solid #888;
  padding-top: 2.0625rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Responsive Design */
@media (min-width: 640px) {
  .contact-cta,
  .news-item {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .hero-section {
    min-height: calc(100vh - 15rem);
    background-image: url('./images/hero-background.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .strengths-grid-new {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-block {
    padding: 3rem;
  }

  .usecases-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .group-companies-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }

  .menu-button {
    display: none;
  }

  .hero-title {
    font-size: 3rem;
  }

  .strengths-grid-new {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .usecases-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .usecase-result {
    height: 8rem;
  }

  .group-companies-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile-only styles */
@media (max-width: 1023px) {
  .nav-desktop {
    display: none;
  }

  .menu-button {
    display: block;
  }
}

/* Mobile responsive styles */
@media (max-width: 767px) {
  .container {
    padding: 0 1rem;
  }

  .hero-section {
    padding-bottom: 15rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2.1rem;
    margin-bottom: 2.25rem;
  }

  .hero-content {
    padding-top: 2rem;
  }

  .hero-title-break {
    display: block;
  }

  .hero-subtitle {
    max-width: none;
  }

  .service-section .service-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .service-section .service-section-header::after {
    width: 100%;
    flex: none;
  }

  .strengths-grid-new {
    grid-template-columns: 1fr;
  }

  .strength-card-new {
    padding: 1.5rem;
  }

  .strength-card-title {
    font-size: 1.5rem;
    min-height: auto;
  }

  .usecase-result {
    padding: 1rem 0.8rem;
  }

  .group-company-card {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0.75rem;
    min-height: auto;
  }

  .group-company-card-row-2 {
    min-height: auto;
  }

  .group-company-logo {
    width: 6.25rem;
    height: 4.375rem;
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .group-company-info {
    width: 100%;
    text-align: center;
    align-items: center;
  }

  .group-company-name {
    font-size: 1.125rem;
    white-space: normal !important;
    text-align: center;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .group-company-description {
    width: 100%;
  }

  .group-company-description p {
    white-space: normal !important;
    text-align: center;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .group-company-link {
    margin-top: 0.75rem;
    justify-content: center;
  }

  .contact-section {
    padding: 4rem 0;
  }

  .contact-title {
    font-size: 2.1rem;
  }
}

/* Utility Classes */
.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  padding: 0;
  margin: -0.0625rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
