/**
 * 会社概要ページ（Company Profile）
 * 画像デザインに合わせたピクセル一致スタイル
 */

.page-company {
  --company-bar-bg: #1a237e;
  --company-blob-start: #7dd3fc;
  --company-blob-end: #a78bfa;
  --company-inner: min(calc(100% - 40px), 1200px);
  --company-hero-w: 990px;
  writing-mode: horizontal-tb;
  direction: ltr;
  overflow-x: hidden;
}

/* レスポンシブ時の縦一列崩れ防止 */
.page-company .l-contents,
.page-company .l-main,
.page-company .p-page {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
}

.page-company .p-page-company,
.page-company .p-company-hero,
.page-company .p-company-section,
.page-company .c-desc {
  word-break: normal;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* ========== Hero（990×340・スタッフ紹介と同じ仕様） ========== */
.page-company .p-company-hero {
  position: relative;
  width: var(--company-hero-w);
  max-width: 100%;
  height: 340px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  background: #ddd;
  box-sizing: border-box;
}

.page-company .p-company-hero__bg {
  display: block;
  width: var(--company-hero-w);
  max-width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center;
}

.page-company .p-company-hero__bg--ph {
  position: absolute;
  inset: 0;
  background: #ddd;
}

/* タイトルパネル（左・半透明黒） */
.page-company .p-company-hero-panel {
  position: absolute;
  left: 0;
  top: 126px;
  width: 308px;
  height: 117px;
  background: rgba(0, 0, 0, 0.58);
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-sizing: border-box;
}

.page-company .p-company-hero-panel__left {
  width: 200px;
}

.page-company .p-company-hero-panel__en {
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.12;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.page-company .p-company-hero-panel__divider {
  width: 1px;
  height: 92px;
  background: rgba(255, 255, 255, 0.8);
  margin: 0 20px 0 8px;
  flex-shrink: 0;
}

.page-company .p-company-hero-panel__right {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

/* ==========================================================================
   メインコンテンツ
   ========================================================================== */
.p-company-body {
  background: #fff;
  padding: 48px 0 80px;
}

.p-company-body__inner {
  max-width: var(--company-inner);
  margin-left: auto;
  margin-right: auto;
}

/* ロゴエリア */
.p-company-logo {
  text-align: center;
  margin-bottom: 56px;
}

.p-company-logo__img {
  display: inline-block;
  max-width: 280px;
  height: auto;
  vertical-align: middle;
}

.p-company-logo__mark {
  display: block;
  font-size: 42px;
  font-weight: 800;
  color: #00698c;
  letter-spacing: 0.08em;
}

.p-company-logo__text {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #00698c;
  letter-spacing: 0.2em;
  margin-top: 4px;
}

/* ==========================================================================
   セクション共通（青バー・グラデーション）
   ========================================================================== */
.p-company-section {
  position: relative;
  margin-bottom: 64px;
}

.p-company-section:last-of-type {
  margin-bottom: 0;
}

.p-company-section__bar {
  display: inline-block;
  background: var(--company-bar-bg);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 12px 24px;
  margin: 0 0 32px;
}

.p-company-section__blob {
  position: absolute;
  width: 60%;
  height: 100%;
  min-height: 320px;
  border-radius: 50% 50% 40% 60% / 40% 50% 50% 60%;
  background: linear-gradient(135deg, var(--company-blob-start) 0%, var(--company-blob-end) 100%);
  opacity: 0.25;
  pointer-events: none;
}

.p-company-section__blob--left {
  top: -20px;
  left: -10%;
  width: 50%;
}

.p-company-section__blob--right {
  bottom: -40px;
  right: -10%;
  width: 55%;
  left: auto;
  background: linear-gradient(225deg, var(--company-blob-start) 0%, var(--company-blob-end) 100%);
}

/* レスポンシブ：青い丸を縦長の円形に（縦に伸びすぎないように） */
@media (max-width: 767px) {
  .p-company-section__blob {
    width: 72vw !important;
    min-height: 88vw;
    height: 88vw;
    max-height: 320px;
    border-radius: 50%;
  }
  .p-company-section__blob--left {
    width: 72vw;
    min-height: 88vw;
    height: 88vw;
    max-height: 320px;
    top: -10px;
    left: -15%;
  }
  .p-company-section__blob--right {
    width: 72vw;
    min-height: 88vw;
    height: 88vw;
    max-height: 320px;
    bottom: -20px;
    right: -15%;
    left: auto;
  }
}

.p-company-section__content {
  position: relative;
  z-index: 1;
}

.p-company-section__heading {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  margin: 0 0 24px;
  line-height: 1.45;
}

.p-company-section__text {
  font-size: 15px;
  line-height: 2;
  color: #000;
}

/* ==========================================================================
   会社概要（定義リスト）
   ========================================================================== */
.p-company-dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px 40px;
  margin: 0;
  font-size: 15px;
}

.p-company-dl dt {
  font-weight: 600;
  color: #000;
  margin: 0;
  padding: 0;
}

.p-company-dl dd {
  margin: 0;
  padding: 0;
  color: #000;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .p-company-dl {
    grid-template-columns: 1fr;
    gap: 8px 0;
  }
  .p-company-dl dt {
    margin-top: 12px;
    border-top: 1px solid #eee;
    padding-top: 12px;
  }
  .p-company-dl dt:first-child {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
  }
}

/* ==========================================================================
   本社所在地（写真2列 + 地図全幅）
   ========================================================================== */
.p-company-location {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.p-company-location__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.p-company-location__image {
  width: 100%;
  aspect-ratio: 560 / 360;
  overflow: hidden;
  border-radius: 4px;
}

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

.p-company-location__ph {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 15px;
}

.p-company-location__map {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 280px;
}

.p-company-location__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Hero レスポンシブ（スタッフ紹介と同じ仕様） */
@media (max-width: 990px) {
  .page-company .p-company-hero {
    width: 100%;
    height: 280px;
  }

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

  .page-company .p-company-hero-panel {
    top: 50%;
    transform: translateY(-50%);
    width: min(308px, 85%);
  }
}

@media (max-width: 767px) {
  .p-company-location__photos {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   フッター（会社概要ページもシンプル表示）
   ========================================================================== */
.page-company .l-footer {
  background: #fff !important;
  padding: 0;
}

.page-company .l-footer .l-inner {
  padding: 0;
  max-width: none;
}

.page-company .l-footer .p-footer-banner,
.page-company .l-footer .p-footer-main {
  display: none !important;
}

.page-company .p-footer-copyright {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #1a237e !important;
  color: #fff;
  border-top: 3px solid #007bff;
  border-bottom: 3px solid #007bff;
  padding: 16px 20px;
  text-align: center;
  box-sizing: border-box;
}

.page-company .p-footer-copyright p {
  font-size: 15px;
  color: #fff;
  padding: 0;
  margin: 0;
}
