/* ------------------------------------------------------------
 * 会社概要ページ
 * ------------------------------------------------------------ */

/* ------------------------------------------------------------
 * 1. FV (ファーストビュー)
 * ------------------------------------------------------------ */
.about-fv {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 700px;
  overflow: hidden;
}

.about-fv__img-wrapper {
  width: 100%;
  height: 100%;
}

.about-fv__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.about-fv__content {
  position: absolute;
  left: 64px;
  top: 551px;
  width: 226px;
  height: 85px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  font-family: 'Noto Sans JP', sans-serif;
}

.about-fv__title {
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0.05em;
  margin: 0;
  color: #ffffff;
}

.about-fv__sub {
  font-size: 16px;
  line-height: 1;
  margin: 0;
  color: #ffffff;
}


/* ------------------------------------------------------------
 * 2. CEO Message Section
 * ------------------------------------------------------------ */
.about-ceo {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: linear-gradient(135deg, #f0f7f9 0%, #ffffff 50%, #e8f3f7 100%);
  padding: 160px 0;
  box-sizing: border-box;
}

.about-ceo__inner {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  width: 100%;
  max-width: 960px;
  box-sizing: border-box;
}

/* 左側：コンテンツ */
.about-ceo__content {
  flex: 1;
  max-width: none;
  padding: 0;
}

.about-ceo__header {
  margin-bottom: 40px;
}

.about-ceo__title {
  font-family: 'Crimson Text', serif;
  font-size: 40px;
  color: #2b7094;
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin: 0;
}

.about-ceo__sub {
  font-size: 16px;
  font-family: 'Noto Sans JP', sans-serif;
  color: #333333;
  margin-top: 8px;
}

.about-ceo__text {
  font-size: 16px;
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.85;
  color: #333333;
  width: 100%;
}

.about-ceo__text p:last-child {
  margin-bottom: 0;
}

/* 右側：プロフィール */
.about-ceo__profile {
  width: 250px;
  height: 414px;
  flex-shrink: 0;
  padding: 0;
}

.about-ceo__img-wrapper {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.about-ceo__img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-ceo__info {
  margin-top: 20px;
  text-align: right;
}

.about-ceo__position {
  font-size: 16px;
  color: #AE874B;
  margin-right: 8px;
  font-family: 'Noto Sans JP', sans-serif;
}

.about-ceo__name {
  font-size: 24px;
  color: #333333;
  letter-spacing: 0.05em;
  font-family: 'Noto Sans JP', sans-serif;
}

.about-ceo__en-name {
  display: block;
  font-family: 'Crimson Text', serif;
  font-size: 16px;
  color: #666666;
  margin-top: 4px;
}


/* ------------------------------------------------------------
 * 3. Company Information Section
 * ------------------------------------------------------------ */
.about-company {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background-color: #f9fbfb;
}

.about-company__inner {
  margin: 0 auto;
  padding: 160px 0;
  width: 100%;
  max-width: 960px;
  box-sizing: border-box;
}

.about-company__header {
  margin-bottom: 50px;
}

.about-company__title {
  font-family: 'Crimson Text', serif;
  font-size: 40px;
  font-weight: 400;
  color: #2b7094;
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin: 0;
}

.about-company__sub {
  font-size: 16px;
  color: #333333;
  margin-top: 8px;
}

/* 会社概要 DL Table */
.about-company__dl {
  border-top: 1px solid #e0e6e8;
  margin-bottom: 80px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  width: 100%;
}

.about-company__row {
  display: flex;
  padding: 24px 0;
  border-bottom: 1px solid #e0e6e8;
  font-size: 0.875rem;
  line-height: 1.6;
}

.about-company__row dt {
  width: 150px;
  font-weight: 700;
  color: #333333;
  flex-shrink: 0;
}

.about-company__row dd {
  flex: 1;
  color: #333333;
  margin: 0;
}

/* パートナー企業 Grid */
.about-partners__title {
  font-size: 16px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 30px;
  font-family: 'Noto Sans JP', sans-serif;
}

.about-partners__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 32px; 
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* パートナー企業 Grid Card */
.partner-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 298px;
  height: 254px;
  box-sizing: border-box;
  padding: 32px;
}
/* 背景グラデーション */
.partner-card:nth-child(1),
.partner-card:nth-child(3),
.partner-card:nth-child(5){
    background: 
    radial-gradient(circle at top left, rgba(212, 238, 242, 0.9) 0%, rgba(244, 248, 249, 0) 30%),
    linear-gradient(135deg, #f4f8f9 0%, #eaf2f5 100%);
  border-radius: 4px;
}
.partner-card:nth-child(2),
.partner-card:nth-child(4),
.partner-card:nth-child(6){
    background: 
    radial-gradient(circle at top left, rgba(238, 245, 215, 0.9) 0%, rgba(244, 248, 249, 0) 30%),
    linear-gradient(135deg, #f4f8f9 0%, #eaf2f5 100%);
  border-radius: 4px;
}

.partner-card:nth-child(4),
.partner-card:nth-child(6){
    padding-top: 74px;
}

.partner-card:has(.partner-card__logo) {
  padding: 32px;
}

.partner-card__logo {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 16px;
  flex-shrink: 0;
  margin-inline: auto;
}

.partner-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partner-card__name {
  font-size: 16px;
  font-weight: 700;
  color: #222222;
  margin: 0 0 12px 0;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.partner-card__desc {
  font-size: 0.8125rem;
  color: #444444;
  line-height: 1.7;
  margin: 0;
}


/* ------------------------------------------------------------
 * 4. レスポンシブ設定 (スマホ表示: 768px以下)
 * ------------------------------------------------------------ */
@media screen and (max-width: 768px) {
  body,
  .about-company,
  .about-ceo,
  .about-fv {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    overflow-x: hidden;
  }

  /* --- FV --- */
  .about-fv {
    height: 360px;
  }

  .about-fv__content {
    left: 20px;
    top: auto;
    bottom: 24px;
    width: auto;
    height: auto;
  }

  .about-fv__title {
    font-size: 1.75rem;
  }

  .about-fv__sub {
    font-size: 0.75rem;
  }

  /* --- CEO Message Section --- */
  .about-ceo__title {
    font-size: 1.5rem;
  }
  .about-ceo__name {
    font-size: 1.2rem;
  }
  .about-ceo__sub,
  .about-ceo__position,
  .about-ceo__en-name{
    font-size: 0.75rem;
  }

  .about-ceo {
    padding: 60px 0;
    height: auto;
  }

  .about-ceo__inner {
    flex-direction: column;
    gap: 40px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .about-ceo__content {
    max-width: 100%;
    padding: 0;
    order: 1;
  }

  .about-ceo__text {
    width: 100%;
  }

  .about-ceo__profile {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 0;
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-ceo__info {
    margin-top: 16px;
    text-align: center;
  }

  /* --- Company Information Section --- */
  .about-company__title {
    font-size: 1.5rem;
  }
  .about-company__sub {
    font-size: 0.75rem;
  }
  .about-company__row {
    font-size: 0.75rem;
  }
  .about-company {
    padding: 60px 0;
  }

  .about-company__inner {
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .about-company__row {
    flex-direction: column;
    padding: 16px 0;
    gap: 6px;
  }

  .about-company__row dt {
    width: 100%;
  }

  /* パートナー企業 Grid (折り返し・画面内収容を強制) */
  .about-partners__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* minmax(0, 1fr) で親要素突き破りを強制防止 */
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .partner-card {
    padding: 14px 10px;
    height: 185px;
    min-height: auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .partner-card:nth-child(4),
  .partner-card:nth-child(5),
  .partner-card:nth-child(6){
    padding: 0 28px 0 28px;
    justify-content: center;
  }
  .partner-card__logo {
    height: 28px;
    margin-bottom: 8px;
  }
  .partner-card:has(.partner-card__logo){
    padding: 28px;
  }
  

  .partner-card__name {
    font-size: 13px;
    margin-bottom: 6px;
    word-break: break-all; /* 長い会社名で枠を突き破るのを防止 */
    overflow-wrap: anywhere;
  }

  .partner-card__desc {
    font-size: 11px;
    line-height: 1.4;
    word-break: break-all; /* 説明文の長い単語による突き破りを防止 */
    overflow-wrap: anywhere;
  }
}
