.company-hero-section {
  width: 100%;
  height: 450px;
  background-size: cover;
  background-image: url(/common/images/company/company-header.webp);
  background-position: bottom -100px center;
  background-repeat: no-repeat;
}

@media (max-width: 480px) {
  .company-hero-section {
    display: none;
  }
}

.message-container {
  display: flex;
  gap: 70px;
}

.message-left {
  flex: 1;
}

.message-headline {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 32px;
  color: #1a1a1a;
  letter-spacing: 1.2px;
}

.message-text {
  font-size: 13.5px;
  line-height: 1.7;
  font-weight: medium;
  color: #3a3a3a;
  letter-spacing: 0.6px;
}

.message-text p {
  margin-bottom: 1.1em;
  text-align: justify;
  font-size: 14px;
  font-weight: 550;
}

.message-signature {
  text-align: right;
  font-size: 14px;
  font-weight: 550;
}

.signature-company {
  font-size: 12.5px;
  color: #666;
  margin-bottom: 6px;
  letter-spacing: 0.8px;
}

.signature-position {
  font-size: 12.5px;
  color: #666;
  margin-bottom: 10px;
  letter-spacing: 0.8px;
}

.signature-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 2.5px;
}

.message-right {
  flex: 1;
}

.president-photo {
  width: 100%;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.president-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.photo-placeholder {
  width: 100%;
  height: 480px;
  background: linear-gradient(135deg, #f5f5f5, #ececec);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b0b0;
  font-size: 13px;
  letter-spacing: 1px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 35px;
  position: relative;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.title-english {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  color: #e52134;
  font-weight: 500;
  margin-top: 5px;
}

.info-content {
  display: flex;
  gap: 60px;
}

.info-left {
  flex: 0 0 auto;
}

.overview-container {
  margin-top: 40px !important;
}

.company-image {
  width: 200px;
  height: 150px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 25px;
}

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

.company-details tbody tr {
  border-bottom: 1px solid #aaa;
}

.company-details {
  width: 100%;
  border-collapse: collapse;
}

.company-details th {
  text-align: left;
  padding: 14px 20px 14px 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  vertical-align: top;
}

.company-details td {
  padding: 14px 20px 14px 0;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  line-height: 1.6;
}

.info-right {
  flex: 1;
}

.map-placeholder {
  background: #b8b8b8;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 13px;
  font-weight: 500;
  margin-top: 15px;
}

.map-placeholder img {
  height: 300px;
}

.map-container {
  width: 100%;
  height: 200px;
  background: #b8b8b8;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

.additional-info {
  margin-bottom: 20px;
}

.additional-info p {
  font-size: 13px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 8px;
}

.additional-info strong {
  color: #333;
  font-weight: 600;
}

.history-section {
  padding-top: 20px;
  margin-bottom: -55px;
  background-color: #fff;
}

.history-table-wrapper {
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table tbody tr {
  border-bottom: 1px solid #eee;
}

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

.history-table th {
  text-align: left;
  padding: 14px 20px 14px 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  vertical-align: top;
  width: 25%;
}

.history-table td {
  padding: 14px 0;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  line-height: 1.7;
  width: 75%;
}

/* 拠点一覧のスタイル */
.locations-container {
  padding: 0;
}

.locations-section {
  padding: 0;
}

.location-group {
  margin-bottom: 55px;
}

.location-group:last-child {
  margin-bottom: 0;
}

/* location-titleとlocation-detailsを横並びにするコンテナ */
.location-header {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  margin-bottom: 25px;
}

.location-title-section {
  flex: 0 0 auto;
  min-width: 300px;
}

.location-title {
  font-size: 20px;
  font-weight: 600;
  color: #000;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.location-subtitle {
  font-size: 16px;
  color: #000;
  font-weight: 500;
  margin-bottom: 0;
}

.location-address {
  font-size: 16px;
  color: #000;
  font-weight: 500;
  margin-bottom: 0;
  line-height: 1.6;
}

.location-details-section {
  flex: 1;
}

.location-details {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

.location-details th {
  text-align: left;
  padding: 6px 25px 6px 0;
  font-size: 15px;
  font-weight: 600;
  color: #000;
  white-space: nowrap;
  vertical-align: top;
  min-width: 60px;
}

.location-details td {
  padding: 6px 0;
  font-size: 15px;
  color: #000;
  line-height: 1.5;
}

.location-maps {
  display: flex;
  gap: 20px;
}

.map-item {
  flex: 1;
}

.location-maps .map-placeholder {
  width: 100%;
  height: 300px;
}

/* グループ会社のスタイル */
.group-container {
  padding: 0;
}

.group-section {
  padding: 0;
}

.group-company {
  margin-top: 35px;
}

.company-name {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.company-location {
  font-size: 16px;
  color: #666;
  margin-bottom: 25px;
}

.company-maps {
  display: flex;
  gap: 20px;
}

.company-maps .map-item {
  flex: 1;
}

.large-map {
  height: 280px;
}

.location-mail {
  font-size: 14px;
}

.location-mail a {
  color: #0a8bd7;
}

.location-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.5);
  margin: 30px 0;
}

/* タブレット対応 */
@media (max-width: 1024px) {
  .info-content {
    flex-direction: column;
    gap: 40px;
  }

  .info-left {
    display: flex;
    gap: 30px;
    align-items: flex-start;
  }

  .company-image {
    flex: 0 0 200px;
  }

  .company-details {
    flex: 1;
  }

  .location-header {
    flex-direction: column;
    gap: 20px;
  }

  .location-title-section {
    min-width: auto;
  }

  .location-maps,
  .company-maps {
    flex-direction: column;
    gap: 15px;
  }

  .large-map {
    height: 200px;
  }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .section-title {
    font-size: 20px;
    margin-bottom: 25px;
  }

  .title-english {
    font-size: 10px;
  }

  .info-left {
    flex-direction: column;
    gap: 20px;
  }

  .company-image {
    width: 100%;
    flex: 1;
  }

  .map-container,
  .map-placeholder {
    height: 150px;
  }

  .history-table th {
    padding-right: 15px;
    font-size: 12px;
  }

  .history-table td {
    font-size: 12px;
  }

  .location-title,
  .company-name {
    font-size: 14px;
  }

  .location-details th,
  .location-details td {
    font-size: 12px;
  }

  .location-header {
    gap: 15px;
  }
}

/* デスクトップ大画面対応 */
@media (max-width: 1200px) {
  .message-container {
    gap: 25px;
  }

  .message-right {
    flex: 0 0 320px;
  }
}

/* タブレット対応 */
@media (max-width: 1024px) {
  .message-container {
    flex-direction: column-reverse;
  }

  .message-right {
    flex: 1;
    max-width: 400px;
  }

  .content-area {
    padding: 45px;
  }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .header-layout {
    flex-direction: column;
    gap: 35px;
  }

  .company-title {
    font-size: 52px;
  }

  .company-subtitle {
    font-size: 14px;
  }

  .right-menu {
    width: 100%;
    min-width: auto;
  }

  .content-area {
    padding: 30px 25px;
  }

  .message-headline {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .message-text {
    font-size: 13px;
    line-height: 2;
  }

  .photo-placeholder {
    height: 380px;
  }
}

@media (max-width: 480px) {
  .content-area {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .info-left {
    height: 200px;
  }

  .company-image img {
    height: 200px;
  }

  .section-title {
    margin-bottom: 12px;
  }

  .info-content {
    gap: 20px;
  }

  .info-right .map-placeholder,
  .group-company .map-placeholder {
    margin-top: 10px;
    height: 200px;
  }

  .location-title,
  .company-name {
    font-size: 14px;
  }

  .location-details th,
  .location-details td {
    font-size: 14px;
  }

  .location-header {
    margin-bottom: 0;
  }

  .location-maps {
    gap: 0;
  }

  .location-divider {
    margin: 15px 0;
  }

  .location-group {
    margin-bottom: 40px;
  }

  .group-company {
    margin-top: 10px;
  }

  .group-company .map-placeholder img {
    height: 200px;
  }

  .group-company .map-placeholder iframe {
    height: 200px;
  }

  .president-photo img {
    height: 250px;
    object-fit: cover;
  }

  .message-headline {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .message-text p {
    font-size: 13px;
    font-weight: 400;
  }

  .location-maps .map-placeholder {
    height: 180px;
  }

  .map-placeholder img {
    height: 180px;
  }

  .map-placeholder iframe {
    height: 180px !important;
  }

  .location-address {
    font-size: 13px;
  }
}
