/* company.css: page-specific diff from site.css */
:root {
  --radius-lg: 18px;
}

.section-label {
  display: inline-block;
  position: relative;
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.section-label::after {
  content: "";
  display: block;
  width: 88px;
  height: 2px;
  margin-top: 13px;
  background: var(--gold);
}

.page-section {
  margin: 0 0 30px;
}

.soft-card {
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.philosophy-section {
  position: relative;
  margin: 28px 0 30px;
}
.philosophy-section::after {
  content: "";
  display: block;
  width: 100%;
  height: auto;
  margin-top: -10%;
  background: url("/images/company-philosophy-landscape.webp") no-repeat center -65% / 110%;
  aspect-ratio: 3;
}

.philosophy-card {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.philosophy-text .section-label {
  margin-bottom: 20px;
}

.philosophy-text h2 {
  margin: 0 0 24px;
  color: var(--green);
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.5;
}

.philosophy-text p {
  margin: 0 0 28px;
  color: #334540;
  font-size: 15px;
  font-weight: 600;
  line-height: 2;
}

.philosophy-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.philosophy-pillar {
  padding: 14px 10px;
  background: var(--beige);
  border-radius: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
  line-height: 1.5;
}

.philosophy-pillar strong {
  display: block;
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 4px;
}

.section-text h2,
.regional-text h2 {
  margin: 0 0 12px;
  color: var(--green);
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(26px, 2.2vw, 35px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0.05em;
}

.section-text p:not(.section-label) {
  margin: 0;
  color: #334540;
  font-size: 16px;
  font-weight: 600;
  line-height: 2.05;
}
.philosophy-visual{
  text-align: center;
}
.philosophy-visual .diagram {
  margin: auto;
}
.regional-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.regional-text h2 {
  font-size: clamp(25px, 2.3vw, 34px);
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.regional-map img,
.regional-photos img {
  border-radius: 12px;
}

.regional-photos img {
  box-shadow: 0 8px 20px rgba(29, 48, 43, 0.08);
}

.section-heading {
  margin-bottom: 20px;
}

.dx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.dx-card {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(231, 223, 207, 0.95);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.dx-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 25px;
  font-weight: 800;
}

.dx-card h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.dx-card p {
  margin: 0;
  color: #465753;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.9;
}

.dx-photo {
  height: 100%;
  border-radius: 12px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}
.dx-photo-1 {
  background-image: url("/images/company-dx1.webp");
}
.dx-photo-2 {
  background-image: url("/images/company-dx2.webp");
  background-position-x: right;
}
.dx-photo-3 {
  background-image: url("/images/company-dx3.webp");
  background-position-x: left;
}

.education-card{
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.education-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.education-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.education-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--green);
  font-size: 26px;
  background: #fff;
}

.education-item h3 {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 20px;
  font-weight: 900;
}

.education-item p {
  margin: 0;
  color: #3d4d49;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.9;
}

.education-visual img {
  width: 720px;
  max-width: 100%;
  margin: auto;
}

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

.history-card {
  padding: 46px 48px 42px;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-bottom: 48px;
}

.company-table th,
.company-table td {
  padding: 12px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(228, 226, 216, 0.7);
  vertical-align: top;
  line-height: 1.5;
}

.company-table th {
  width: 160px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  color: #1F4D3A;
  white-space: nowrap;
}

.company-table td {
  color: #3A4A46;
  font-weight: 600;
}

.company-table td a {
  color: #1F4D3A;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold), transparent);
  z-index: 0;
}

.timeline-item {
  position: relative;
  z-index: 1;
  padding: 0 14px;
  border-right: 1px solid rgba(231, 223, 207, 0.95);
}

.timeline-item:last-child {
  border-right: 0;
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.timeline-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 0;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.timeline-icon {
  width: 100%;
  height: 120px;
  margin-bottom: 18px;
  background-image: url("/images/company-timeline-icons.webp");
  background-size: 500% auto;
  background-repeat: no-repeat;
}

.timeline-icon-1 {
  background-position: 0% center;
}

.timeline-icon-2 {
  background-position: 25% center;
}

.timeline-icon-3 {
  background-position: 50% center;
}

.timeline-icon-4 {
  background-position: 75% center;
}

.sokumo-logo {
  height: 120px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sokumo-logo img {
  max-width: 170px;
}

.timeline-item h3 {
  margin: 0;
  color: var(--green);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.55;
}

.timeline-item p {
  margin: 0;
  color: #44534f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.9;
}

@media (max-width: 1024px) {
  .regional-map,
  .regional-photos {
    max-width: 760px;
  }

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

  .education-card{
    grid-template-columns: 1fr;
  }
  .education-list{
    grid-template-columns: repeat(2, 1fr);
  }
  
  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    border-right: 0;
    border-bottom: 1px solid rgba(231, 223, 207, 0.95);
    padding-bottom: 28px;
  }
}

@media (max-width: 768px) {
  .philosophy-card,
  .regional-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .philosophy-section {
    margin-top: 28px;
  }
  .philosophy-section::after {
    margin-top: -3%;
    background: url("/images/company-philosophy-landscape.webp") no-repeat center 50% / 150%;
  }
  .philosophy-visual .diagram {
    max-width: 330px;
  }
  
  .dx-card {
    grid-template-columns: 1fr;
  }
  .dx-grid {
    grid-template-columns: 1fr;
  }

  .education-list{
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

@media (max-width: 480px) {
  .philosophy-pillars {
    grid-template-columns: 1fr;
  }
  .philosophy-section::after{
    background-size: 200%;
    background-position: center 60%;
  }
  .section-text h2,
  .regional-text h2 {
    font-size: 25px;
  }

  .soft-card {
    border-radius: 0;
  }

  .company-table th {
    width: 80px;
    font-size: 13px;
  }

  .company-table td {
    font-size: 13px;
  }

  .company-table th,
  .company-table td {
    padding: 12px 14px;
  }

  .education-item {
    grid-template-columns: 54px 1fr;
    gap: 14px;
  }

  .education-icon {
    width: 50px;
    height: 50px;
  }
}