/* Basic Reset & Body */
body {
  font-family: "Noto Serif JP", serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #333;
  font-size: 1.25rem;
}

.body-container {
  padding-top: calc(50px + 12 * 2px);
}

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

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.logo {
  max-width: 250px;
  min-width: 180px;
  width: 22%;
}
.logo img {
  width: 100%;
  height: auto;
}

.logo-text small {
  font-size: 12px;
  font-weight: normal;
  color: #666;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav li {
  margin-left: 25px;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.contact-button {
  background-color: #00a0e9;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  white-space: nowrap;
}

/* Hero Section */
main {
  position: relative;
}
.background-main {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: -10;
}
.diagonal-background {
  background: linear-gradient(150deg, #fff 40%, #e7f1e8 0%);
  width: 100%;
  height: 100vh;
}
.gradation-background {
  background: linear-gradient(#e7f1e8, #fff);
  width: 100%;
  height: 100vh;
}

@media screen and (min-width: 450px) {
  .gradation-background {
    background: linear-gradient(#e7f1e8, #fff);
    width: 100%;
    height: 60vh;
  }
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 300px;
  padding: 0 8px;
}
@media screen and (min-width: 450px) {
  .hero-content {
    height: 700px;
  }
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2rem;
  line-height: 1.5;
  margin: 0;
  font-weight: 900;
}
@media screen and (min-width: 450px) {
  .hero-text h1 {
    font-size: 3rem;
    letter-spacing: 0.75rem;
  }
}

.hero-text .highlight {
  color: #00a0e9;
}

.hero-image {
  flex: 1.2;
  height: 100%;
  background-image: url("../img/company/first_view.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right center;
}

/* Section Title */
.section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
}

/* Thoughts Section */
.thoughts {
  padding: 24px 0 40px;
  font-weight: 700;
}

.thoughts .container {
  max-width: 900px;
  text-align: center;
}

.thoughts-logo {
  margin: 40px auto 0;
  height: 60px;
  width: 250px;
  background-image: url("../img/company/logo.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
}

/* Social Issue Section */
.social-issue {
  padding: 80px 0;
  background-color: #fff;
}

.section-header {
  text-align: left;
  margin-bottom: 60px;
  position: relative;
  padding-left: 80px;
}

.section-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 30px;
  bottom: 10px;
  width: 64px;
  height: 2px;
  background-color: var(--company-color);
}

.section-title-en {
  font-size: 2.5rem;
  color: var(--company-color);
  font-weight: 900;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.3rem;
}

.section-subtitle-jp {
  font-size: 18px;
  color: var(--company-color);
  margin-top: 5px;
  font-weight: bold;
}

.issue-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.issue-text {
  flex: 1.5;
}

.issue-text h3 {
  font-size: 28px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 30px;
}
.issue-text h3 span {
  color: var(--company-color);
}
.issue-text p {
  line-height: 2;
  margin-bottom: 1.5em;
}

.issue-image {
  flex: 1;
  height: 350px;
  background-image: url("../img/company/social_issue.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

/* Our Mission Section */
.our-mission {
  padding: 80px 0;
  background: linear-gradient(#fff, #e7f1e8);
}

.section-header-right {
  text-align: right;
  margin-bottom: 60px;
  position: relative;
  padding-right: 80px;
}

.section-header-right .section-title-en,
.section-header-right .section-subtitle-jp {
  color: var(--company-color);
}

.section-header-right::after {
  content: "";
  position: absolute;
  right: 0;
  top: 30px;
  bottom: 10px;
  width: 64px;
  height: 2px;
  background-color: var(--company-color);
}

.mission-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.mission-image {
  flex: 1;
  height: 350px;
  background-image: url("../img/company/our_missions.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.mission-text {
  flex: 1.55;
}

.mission-text h3 {
  font-size: 28px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 30px;
}

.mission-text p,
.initiatives-text p {
  line-height: 2;
  margin-bottom: 1.5em;
}

/* Initiatives Section */
.initiatives {
  padding: 20px 0;
  background: linear-gradient(#e7f1e8, #fff);
}

.initiatives .container {
  max-width: 800px;
  text-align: center;
}

.initiatives-images {
  display: flex;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 16px;
}

.initiatives-image {
  width: 30%;
}
.initiatives-image img {
  width: 100%;
}

.initiatives-text {
  text-align: justify;
}

/* Points Section */
.points {
  padding: 20px 0;
  background-color: #fff;
}

.points-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 900px;
  margin-bottom: 16px;
}

.point-card {
  display: flex;
  align-items: center;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  padding: 20px 8px;
  border-radius: 8px;
}

.point-number {
  background-color: var(--company-button-color);
  color: #fff;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}
.point-label {
  font-size: 16px;
  font-weight: bold;
  margin-top: 5px;
}

.point-digit {
  font-size: 48px;
  font-weight: bold;
  line-height: 1;
}

.point-content {
  flex: 0.9;
}

.point-content h3 {
  font-size: 28px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
}

.point-content p {
  line-height: 1.8;
  margin: 0;
  color: #333;
}

@media (max-width: 768px) {
  .point-card {
    position: relative;
  }
  .point-number {
    position: absolute;
    top: -25px;
    left: -12px;
    width: 50px;
    height: 50px;
  }
  .point-label {
    font-size: 12px;
  }
  .point-digit {
    font-size: 24px;
  }

  .point-label {
    font-size: 8px;
  }
  .point-digit {
    font-size: 30px;
  }
}

/* About Us Section */
.about-us {
  padding: 80px 0;
  background-color: #fff;
}

.about-us .section-header {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 50px;
  background-color: #eaf2ed;
  border-radius: 10px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.service-card.reverse {
  flex-direction: row-reverse;
}

.service-text {
  flex: 1.5;
}

.service-text h3 {
  font-size: 28px;
  font-weight: bold;
  color: var(--company-color);
  margin-top: 0;
  margin-bottom: 20px;
}

.service-text p {
  line-height: 2;
  margin-bottom: 30px;
}

.service-button {
  background-color: var(--company-button-color);
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  display: inline-block;
  transition: background-color 0.3s;
}

.service-button:hover {
  background-color: #00331a;
}

.service-image {
  flex: 1;
  height: 250px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

#service-image-1 {
  background-image: url("../img/keisho/logo.png");
}

#service-image-2 {
  background-image: url("../img/keiei/logo.png");
}

/* Hamburger Menu */
.hamburger-menu {
  display: none; /* Hidden by default */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
}

.hamburger-menu.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive Styles */
@media (max-width: 768px) {
  header {
    position: relative; /* Needed for absolute positioning of nav */
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  nav li {
    margin: 0;
    border-bottom: 1px solid #eee;
  }

  nav a {
    display: block;
    padding: 20px;
  }

  .contact-button {
    display: none;
  }

  .hamburger-menu {
    display: block;
  }

  /* Stack image-text sections on mobile */
  .issue-content,
  .mission-content,
  .service-card {
    flex-direction: column;
    gap: 30px;
  }

  .mission-content,
  .service-card.reverse,
  .sp-reverse {
    flex-direction: column-reverse;
  }

  .issue-image,
  .mission-image,
  .service-image {
    flex: none; /* Reset flex behavior for vertical stacking */
    height: 250px;
    width: 100%;
  }

  .service-card {
    padding: 30px 20px;
  }

  .body-container {
    padding-top: 0px;
  }
}

/* News Section */
.news {
  padding: 80px 0;
  background: linear-gradient(#fff, #e7f1e8);
}

.news .section-header {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.news-articles {
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  margin: 0 auto;
  border-top: 1px solid #ddd;
}

.news-article a {
  display: flex;
  align-items: center;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #ddd;
  transition: background-color 0.3s;
}

.news-article a:hover {
  background-color: #f5f5f5;
}

.news-date {
  font-size: 16px;
  color: #333;
  margin: 0;
  min-width: 100px;
}

.news-category {
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background-color: var(--company-color);
  padding: 4px 12px;
  border-radius: 4px;
  margin: 0 20px;
  white-space: nowrap;
}

.news-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  line-height: 1.5;
  flex-grow: 1;
}

.news-link-icon {
  font-size: 20px;
  font-weight: bold;
  color: var(--company-button-color);
  margin-left: 20px;
}

.news-footer {
  text-align: center;
  margin-top: 50px;
}

.news-archive-button {
  background-color: var(--company-button-color);
  color: #fff;
  padding: 15px 40px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  display: inline-block;
  transition: background-color 0.3s;
}

.news-archive-button:hover {
  background-color: #00331a;
}

@media (max-width: 768px) {
  .news-article a {
    flex-wrap: wrap;
  }
  .news-title {
    width: 80%;
  }
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  padding-top: 60px;
  font-size: 1rem;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid #555;
}

.footer-logo {
  max-width: 250px;
}

.footer-logo img {
  width: 100%;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.footer-nav a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

.back-to-top-button {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

.back-to-top-button span {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
}

.back-to-top-button span::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 12px;
  height: 12px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(45deg);
}

.copyright {
  text-align: center;
  padding: 20px 0;
  font-size: 12px;
}

/* Company Profile Section */
.company-profile {
  padding: 80px 0;
  background: linear-gradient(#e7f1e8, #fff);
}

.company-profile .container {
  max-width: 1000px;
}

.company-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  font-size: 1.2rem;
}

.company-info-table th,
.company-info-table td {
  border-top: 1px solid #e0e0e0;
  padding: 24px 16px;
  text-align: left;
  vertical-align: top;
}

.company-info-table tr:last-child th,
.company-info-table tr:last-child td {
  border-bottom: 1px solid #e0e0e0;
}

.company-info-table th {
  font-weight: normal;
  width: 25%;
  white-space: nowrap;
}

.company-info-table td {
  width: 75%;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .company-info-table th,
  .company-info-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: none;
    padding: 8px 0;
    white-space: normal;
  }

  .company-info-table tr {
    display: block;
    border-top: 1px solid #e0e0e0;
    padding: 10px 0;
  }

  .company-info-table tr:last-child {
    border-bottom: 1px solid #e0e0e0;
  }

  .company-info-table th {
    padding-bottom: 0;
  }

  .company-info-table td {
    padding-top: 0;
  }
}
