/* ==========================================================================
   Meihou Theme — company.css (会社概要 / PC)
   Design width: 1280
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.p-company-hero {
  width: var(--width-page);
  margin: 0 auto;
  padding: 0 var(--side) 0;
}

.p-company-hero .c-breadcrumb {
  margin: 0 0 98px;
  padding: 0;
}

.p-company-hero__title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-blue-accent);
}

.p-company-hero__en {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-text-soft);
}

.p-company-hero__media {
  position: relative;
  margin-top: 100px;
  overflow: hidden;
  border-radius: 10px;
}

.p-company-hero__media img {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.p-company-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 12, 38, 0.1);
  pointer-events: none;
}

.p-company-hero__catch {
  /* XAML Margin y590 on media starting y385 → 205px from media top */
  position: absolute;
  top: 185px;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-white);
  text-shadow: 0 2px 16px rgba(0, 12, 38, 0.35);
}

/* --------------------------------------------------------------------------
   Message
   -------------------------------------------------------------------------- */

.p-company-message {
  margin-top: 100px;
  background: var(--color-bg-soft);
}

.p-company-message__inner {
  display: grid;
  grid-template-columns: 1fr 550px;
  gap: 80px;
  width: var(--width-page);
  margin: 0 auto;
  padding: 150px var(--side);
}

.p-company-message__catch {
  margin: 51px 0 40px;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

.p-company-message__body {
  margin-bottom: 1.4em;
  font-size: 14px;
  line-height: 2;
  color: var(--color-text);
}

.p-company-message__media > img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center top;
}

.p-company-message__sign {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 24px;
}

.p-company-message__role {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--color-text);
}

.p-company-message__name {
  display: block;
  flex-shrink: 0;
  width: 130px;
  height: 26px;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

/* --------------------------------------------------------------------------
   Profile table
   -------------------------------------------------------------------------- */

.p-company-profile {
  margin-top: 60px;
  padding: 40px 0 100px;
  background: transparent;
}

.p-company-profile__inner {
  /* 色付き背景エリア自体を 1200 に収める（全幅ベタ塗りにしない） */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 60px 100px;
  background: var(--color-bg-soft);
}

.p-company-profile__card {
  margin-top: 50px;
  padding: 100px 190px;
  background: var(--color-white);
}

.p-company-profile__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-line);
}

.p-company-profile__row:first-child {
  padding-top: 0;
}

.p-company-profile__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.p-company-profile__row dt {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.8;
}

.p-company-profile__row dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
}

.p-company-profile__officers {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  column-gap: 1em;
  justify-content: start;
}

.p-company-profile__officers li {
  display: contents;
}

.p-company-profile__officer-role {
  text-align: right;
}

.p-company-profile__list {
  margin: 0;
  padding-left: 1.2em;
  list-style: disc;
}

.p-company-profile__list li {
  list-style: disc;
}

/* --------------------------------------------------------------------------
   Access（会社概要グレー帯の続き / XAML: map 590×350 @ x590）
   -------------------------------------------------------------------------- */

.p-company-access {
  /* XAML: card bottom ~5553 → access y5653 ≈ 100 */
  margin-top: 100px;
  padding: 0;
}

.p-company-access__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 590px;
  gap: 40px;
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 0;
}

.p-company-access__list {
  margin-top: 50px;
}

.p-company-access__row {
  margin-bottom: 36px;
}

.p-company-access__row:last-child {
  margin-bottom: 0;
}

.p-company-access__row dt {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
}

.p-company-access__row dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
}

.p-company-access__map {
  width: 590px;
  max-width: 100%;
  height: 350px;
  /* map.png の角丸（1x換算）に合わせる */
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-white);
}

.p-company-access__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Stats spacing on this page */
.p-company .c-stats {
  margin-top: 80px;
  margin-bottom: 80px;
}

.p-company .c-group {
  margin-top: 100px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .p-company-hero .c-breadcrumb {
    margin-bottom: 48px;
  }

  .p-company-hero__title {
    font-size: 28px;
  }

  .p-company-hero__media {
    margin-top: 56px;
  }

  .p-company-hero__media img {
    height: auto;
    min-height: 280px;
    max-height: 420px;
  }

  .p-company-hero__catch {
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    padding: 0 var(--side);
    box-sizing: border-box;
  }

  .p-company-message {
    margin-top: 64px;
  }

  .p-company-message__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px var(--side);
  }

  .p-company-message__catch {
    margin-top: 28px;
    font-size: 24px;
  }

  .p-company-message__media > img {
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 400px;
  }

  .p-company-profile {
    margin-top: 40px;
    padding-bottom: 64px;
  }

  .p-company-profile__inner {
    padding: 64px var(--side) 72px;
  }

  .p-company-profile__card {
    padding: 48px 32px;
  }

  .p-company-profile__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .p-company-profile__row dt {
    font-size: 15px;
  }

  .p-company-profile__row dd {
    font-size: 14px;
  }

  .p-company-access {
    margin-top: 64px;
    padding: 0;
  }

  .p-company-access__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .p-company-access__list {
    margin-top: 32px;
  }

  .p-company-access__map {
    width: 100%;
    height: 280px;
  }

  .p-company .c-stats {
    margin-top: 64px;
    margin-bottom: 64px;
  }

  .p-company .c-group {
    margin-top: 64px;
  }
}

@media (max-width: 767px) {
  .p-company-hero .c-breadcrumb {
    margin-bottom: 32px;
  }

  .p-company-hero__title {
    font-size: 24px;
  }

  .p-company-hero__media {
    margin-top: 40px;
  }

  .p-company-hero__media img {
    min-height: 200px;
    max-height: 280px;
  }

  .p-company-hero__catch {
    font-size: 22px;
    line-height: 1.5;
  }

  .p-company-message {
    margin-top: 48px;
  }

  .p-company-message__inner {
    padding: 56px var(--side);
  }

  .p-company-message__catch {
    margin-top: 24px;
    font-size: 20px;
    margin-bottom: 24px;
  }

  .p-company-message__sign {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .p-company-message__name {
    width: 120px;
    height: 24px;
  }

  .p-company-profile__inner {
    padding: 48px var(--side) 56px;
  }

  .p-company-profile__card {
    margin-top: 32px;
    padding: 32px 20px;
  }

  .p-company-access {
    margin-top: 48px;
    padding: 0;
  }

  .p-company-access__row {
    margin-bottom: 24px;
  }

  .p-company-access__map {
    height: 220px;
    border-radius: 8px;
  }

  .p-company .c-stats {
    margin-top: 48px;
    margin-bottom: 48px;
  }

  .p-company .c-group {
    margin-top: 48px;
  }
}
