@charset "utf-8";
/* =========================================
   About Section（スリーエスとは）
   ＋ Feature Cards（3カラム／他セクションでも流用可）
   株式会社スリーエス
   ・PC（1920-1440）を基準に記述
   ・以降は 1439 / 1199 / 700 / 349 の4段のみ
========================================= */

/* =========================================
   セクション本体
========================================= */
.about-section {
  /* --- 文字サイズ（法人向けセキュリティと同じ導き方） ---
     見出しは同じ clamp、リード文はその半分。
     どちらも service-section.css と同じ値になります。 */
  --ab-title: clamp(2rem, 1.2rem + 1.6vw, 2.75rem);
  --ab-lead: calc(var(--ab-title) * 0.5);
  --ab-subhead: calc(var(--ab-title) * 0.7); /* 「スリーエスの特徴」など */

  /* --- 表示アニメーションの順番（このエリアに入った時点が0s） ---
       0.00s  建物セキュリティの
       0.25s  ロゴマーク
       0.50s  スリーエスとは（1文字ずつ・約0.74sで終わる）
       1.25s  2021年より…（左からワイプ）
       1.60s  詳しく見るボタン
  --------------------------------------------------------- */
  --ab-eyebrow-delay: 0s;
  --ab-logo-delay: 0.25s;
  --ab-title-delay: 0.5s;
  --ab-lead-delay: 1.25s;
  --ab-action-delay: 1.6s;

  position: relative;
  /* background-image は about.php 側でインライン指定
     （カスタムプロパティ経由だと相対URLの解決先が参照元CSSになるため） */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-color: var(--color-surface-cyan);
}

.about-section__inner {
  position: relative;
  z-index: 1;
}

/* -----------------------------------------
   2カラム（テキスト ／ 大阪の写真）
----------------------------------------- */
.about-section__columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  align-items: center;
  gap: 40px;
}

/* --- 左：テキスト --- */
.about-section__body {
  min-width: 0;
  text-align: center;
}

.about-section__eyebrow {
  --up-delay: var(--ab-eyebrow-delay);
  color: var(--color-text-strong);
  font-size: var(--ab-lead);
  font-weight: 700;
  line-height: 1.5;
}

.about-section__logo {
  --up-delay: var(--ab-logo-delay);
  margin-top: 12px;
}

.about-section__logo img {
  display: block;
  width: 100%;
  max-width: 330px;
  height: auto;
  margin: 0 auto;
}

/* 法人向けセキュリティの見出しと同じ色・大きさ・動きに揃えています */
.about-section__title {
  margin-top: 10px;
  color: var(--color-teal);
  font-size: var(--ab-title);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.02em;
  line-break: strict;
}

/* 1文字ずつ出すので、全体の開始をここでずらします */
.about-section__title .reveal-chars__char {
  transition-delay: calc(var(--ab-title-delay) + var(--char-index, 0) * 0.04s);
}

.about-section__lead {
  --wipe-delay: var(--ab-lead-delay);
  max-width: 30em;
  margin: 20px auto 0;
  color: var(--color-base);
  font-size: var(--ab-lead);
  font-weight: 500;
  line-height: 1.7;
  text-align: left;
}

.about-section__action {
  --up-delay: var(--ab-action-delay);
  margin-top: 30px;
}

/* --- 右：大阪の写真 --- */
.about-section__visual {
  min-width: 0;
}

.about-section__visual img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border-radius: 4px;
}

/* -----------------------------------------
   下段：3カラムを載せる白パネル
----------------------------------------- */
.about-section__features {
  margin-top: 40px;
  padding: 20px;
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: 0 10px 30px rgba(23, 55, 85, 0.08);
}

/* =========================================
   小見出し（スリーエスの特徴／私たちが担当させていただきます）
   『スリーエスとは』より少し小さく、中央ぞろえ、本文色（#333）
========================================= */
.about-section__subhead {
  margin-bottom: var(--space-20);
  color: var(--color-base);
  font-size: var(--ab-subhead);
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  line-break: strict;
}

/* =========================================
   スタッフ紹介（私たちが担当させていただきます）
========================================= */
.about-section__staff {
  margin-top: var(--space-60);
}

/* 人数が増減しても中央にそろうように、折り返す横並びにしています */
.staff-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-20);
}

.staff-list__item {
  /* 4人並びを基準に、収まらなければ折り返します */
  flex: 0 1 calc((100% - var(--space-20) * 3) / 4);
  min-width: 360px;
}

.staff-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: var(--space-20);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-white);
  text-align: center;
}

.staff-card__photo {
  display: grid;
  place-items: center;
  width: 120px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-border-strong);
  font-size: 2.5rem;
}

.staff-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.staff-card__role {
  margin-top: var(--space-10);
  color: var(--color-teal);
  font-size: var(--font14-size);
  font-weight: 700;
  line-height: 1.4;
}

.staff-card__name {
  margin-top: 4px;
  color: var(--color-text-strong);
  font-size: var(--font18-size);
  font-weight: 700;
  line-height: 1.4;
}

.staff-card__catch {
  margin-top: var(--space-10);
  color: var(--color-base);
  font-size: var(--font14-size);
  line-height: 1.7;
  text-align: left;
  line-break: strict;
}

/* =========================================
   Feature Cards（流用コンポーネント）
   ・about以外のセクションでもそのまま使えます
   ・列数は --feature-columns で変更可
========================================= */
.feature-cards {
  --feature-columns: 3;
  min-width: 0;
}

.feature-cards__list {
  display: grid;
  grid-template-columns: repeat(var(--feature-columns), minmax(0, 1fr));
  gap: 20px;
}

.feature-cards__item {
  min-width: 0;
}

.feature-card {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-white);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* リンクにした場合だけホバーする */
a.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 55, 85, 0.12);
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 100px;
  aspect-ratio: 96 / 83;
}

.feature-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card__body {
  min-width: 0;
}

.feature-card__title {
  color: var(--color-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  line-break: strict;
}

.feature-card__desc {
  margin-top: 6px;
  color: var(--color-text-mute);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.7;
  overflow-wrap: normal;
  line-break: strict;
}

/* =========================================
   1439px以下：small-pc
========================================= */
@media screen and (max-width: 1439px) {
  .about-section__columns {
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: 32px;
  }

  .about-section__logo img {
    max-width: 300px;
  }
}

/* =========================================
   1199px以下：タブレット
   レイアウトはPCと同じ（2カラム＋3カラム）を維持し、
   サイズだけ詰める。カード内はアイコン上・テキスト下に切替。
========================================= */
@media screen and (max-width: 1199px) {
  .about-section__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 3vw, 28px);
  }

  .about-section__logo img {
    max-width: clamp(180px, 30vw, 280px);
  }

  .about-section__lead {
    margin-top: 14px;
  }

  .about-section__action {
    margin-top: 20px;
  }

  .about-section__features {
    margin-top: 32px;
    padding: 16px;
  }

  /* 3カラムを保つため、カード内を縦積みにする */
  .feature-cards__list {
    gap: 12px;
  }

  .feature-card {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 10px;
    padding: 16px 12px;
    text-align: center;
  }

  .feature-card__icon {
    width: clamp(40px, 7vw, 56px);
  }

  .feature-card__title {
    font-size: clamp(0.8125rem, 0.65rem + 0.5vw, 0.9375rem);
  }

  /* 手動の改行はPCのみ有効にする */
  .feature-card__desc br {
    display: none;
  }

  .feature-card__desc {
    margin-top: 4px;
    font-size: clamp(0.6875rem, 0.6rem + 0.3vw, 0.8125rem);
    line-height: 1.6;
  }
}

/* =========================================
   700px以下：スマートフォン
   2カラム → 1カラム。3カラムは縦積み。
========================================= */
@media screen and (max-width: 700px) {
  .about-section__columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .about-section__logo img {
    max-width: 240px;
  }

  .about-section__lead {
    max-width: 100%;
  }

  .about-section__visual img {
    aspect-ratio: 4 / 3;
  }

  .about-section__features {
    margin-top: 28px;
    padding: 14px;
  }

  /* --- 縦積み（カード内は横並びに戻す） --- */
  .feature-cards__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .feature-card {
    grid-template-columns: 48px minmax(0, 1fr);
    justify-items: stretch;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    text-align: left;
  }

  .feature-card__icon {
    width: 48px;
  }

  .feature-card__title {
    font-size: 0.9375rem;
  }

  .feature-card__desc {
    font-size: 0.8125rem;
  }
}

/* =========================================
   349px以下：mini SP
========================================= */
@media screen and (max-width: 349px) {
  .about-section__logo img {
    max-width: 200px;
  }

  .about-section__features {
    padding: 12px;
  }

  .feature-card {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .feature-card__icon {
    width: 44px;
  }

  .feature-card__title {
    font-size: 0.875rem;
  }

  .feature-card__desc {
    font-size: 0.75rem;
  }
}

/* =========================================
   小見出し・スタッフのレスポンシブ
   （デバイス区分は 1439 / 1199 / 700 / 349 のまま）
========================================= */
@media screen and (max-width: 1199px) {
  .staff-list__item {
    /* 3人並びにして、顔写真が小さくなりすぎないようにする */
    flex: 0 1 calc((100% - var(--space-20) * 2) / 3);
  }

  .staff-card__photo {
    width: 100px;
  }
}

@media screen and (max-width: 700px) {
  .about-section__staff {
    margin-top: var(--space-40);
  }

  /* 2人並び。1人ずつだと縦に長くなりすぎます */
  .staff-list {
    gap: var(--space-10);
	flex-direction: column;
  }

  .staff-list__item {
    flex: 0 1 calc((100% - var(--space-10)) / 2);
    min-width: 0;
  }

  .staff-card {
    padding: var(--space-10);
  }

  .staff-card__photo {
    width: 88px;
  }
}

@media screen and (max-width: 349px) {
  /* mini SPは1人ずつ */
  .staff-list__item {
    flex: 0 1 100%;
  }

  .staff-card__photo {
    width: 96px;
  }
}
