/****************************************
 * About Us page — Clean & Floating Side Banner
 ****************************************/

/* 固定ヘッダーの高さなど（必要なら調整） */
:root{
  --header-h: 80px;          /* 固定ヘッダーの高さ */
  --side-top-offset: 24px;   /* バナーの上オフセット */
  --side-w-max: 520px;       /* バナー最大幅 */
  --side-w-vw: 28vw;         /* 画面に対する可変幅 */
  --side-gap: clamp(14px, 2vw, 24px);  /* ← 追加：画面端からの余白 */
}
html{ scroll-padding-top: var(--header-h); }

/* --------------------------------------
  ラッパー / 共通テキスト
--------------------------------------- */
.about-page{
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 16px;                    /* 端詰まり防止 */
  overflow: visible;                       /* 重なりを切らない */
}
/* 念のため：祖先の overflow を切らない */
.wrapper, .wrapper--w, .about-page{ overflow: visible; }

/* セクション共通 */
.about-page section{ margin-bottom: clamp(40px, 6vw, 80px); }
.about-page h2{
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 .25em;
}
.about-page h3{
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.4;
  margin: .4em 0 .8em;
}
.about-page p{
  line-height: 1.9;
  color:#333;
  letter-spacing: 0.02em;
}

.hl{ background:#ffec7a; padding:.1em .25em; }
.eyebrow{
  margin: 0 0 1.2em;
  font-size: .9rem;
  letter-spacing: .1em;
  color:#666;
}

/* --------------------------------------
  ページタイトル
--------------------------------------- */
#about-us-title{ margin-bottom: clamp(24px, 5vw, 56px); }
#about-us-title h1{
  margin: 0;
  font-weight: 800;
  font-size: clamp(32px, 5.5vw, 60px);
  line-height: 1.15;
}

/* --------------------------------------
  h2右に伸びるライン（VISION / MISSION / VALUE 共通）
--------------------------------------- */
#about-vision h2,
#about-mission h2,
#about-value  h2{
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  margin: 20px 0;
}
#about-vision h2::after,
#about-mission h2::after,
#about-value  h2::after{
  content:"";
  flex: 1 1 auto;
  height: 1px;
  background: currentColor;
  opacity: .35;
}
@media (max-width: 560px){
  #about-vision h2::after,
  #about-mission h2::after,
  #about-value  h2::after{ display:none; }
}

/* --------------------------------------
  レイアウト（本文 + 右固定フローティングバナー）
--------------------------------------- */
.about-layout{ position: relative; }

/* 本文（右余白で避けず通常フローのまま） */
.about-main{
  position: relative;
  z-index: 1;
  margin-right: 0;
  padding-right: 0;
}

/* ▼右下固定（PCのみ表示） */
.about-sidebar{
  position: fixed;
  right: var(--side-gap);
  bottom: var(--side-gap);
  left: auto;
  top: auto;
  z-index: 1000;

  width: min(var(--side-w-vw), var(--side-w-max));
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);

  pointer-events: none;        /* 親はクリック不可 */
}
.about-sidebar .side-banner{
  pointer-events: auto;     /* …中身だけクリック可に */
  display: block;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.about-sidebar .side-banner img{
  display: block;
  width: 100%;
  height: auto;
}

/* 小さめの画面では非表示（従来と同じ挙動） */
@media (max-width: 1200px){
  .about-sidebar{ display: none; }
}

/* --------------------------------------
  VISION（本文2カラム）
--------------------------------------- */
.cols-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 4vw, 40px);
  align-items: start;
}
.cols-2 .col p{ margin: 0 0 1em; }
@media (max-width: 960px){
  .cols-2{ grid-template-columns: 1fr; }
}

/* --------------------------------------
  MISSION
--------------------------------------- */
#about-mission h3{
  font-weight: 700;
  font-size: clamp(28px, 4.8vw, 44px);
}
.mission-body p{ margin: 0 0 1em; }

/* --------------------------------------
  CULTURE（横長図）
--------------------------------------- */
#about-culture h2{ margin-bottom: .8em; }
.culture-diagram{
  margin: 0 auto 1.2em;
  text-align: center;
}
.culture-diagram img{
  width: min(980px, 100%);
  height: auto;
}

/* --------------------------------------
  VALUE（Figma準拠）
--------------------------------------- */
#about-value{
  padding-block: clamp(40px, 7vw, 80px);
}

/* キャッチ（『全員が…』） */
#about-value h3{
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 40px);
  line-height: 1.6;
  margin: 12px 0 clamp(16px, 3vw, 32px);
}

/* 「向日葵が考える、経営者とは」キャプション（Figma準拠） */
#about-value .value-caption{
  font-family: "Yu Gothic", "游ゴシック", YuGothic,
               "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-weight: 700;                          /* Bold */
  font-size: clamp(14px, 1.6vw, 18px);       /* PC 18px相当 */
  line-height: 1.6;                           /* 160% */
  letter-spacing: 0.02em;                     /* 2% */
  color: #666;
  margin: 0 0 clamp(12px, 2vw, 20px);
}

/* ブロック：左アイコン / 右テキスト */
#about-value .value-item{
  display: grid;
  grid-template-columns: clamp(140px, 18vw, 220px) minmax(0, 1fr); /* 右列をフルに伸ばす */
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}
#about-value .value-item + .value-item{
  margin-top: clamp(32px, 6vw, 56px);
}

/* 左アイコン：丸い下地を無くし、画像だけ表示 */
#about-value .value-icon{
  background: transparent;
  border-radius: 0;
  width: auto;
  height: auto;
  display: block;      /* flex をやめる */
  margin: 0;
}
#about-value .value-icon img{
  width: clamp(140px, 18vw, 220px);   /* 旧円の直径相当（お好みで） */
  height: auto;
  display: block;
  border-radius: 12px;                /* 丸四角（不要なら 0） */
  /* border-radius: 0; */
}

/* 右テキスト（Figma 準拠） */
#about-value .value-text{
  max-width: none;                    /* 右端まで伸ばすため制限解除 */
  width: 100%;
}
#about-value .value-text h4{
  font-family: "Yu Gothic","游ゴシック",YuGothic,
               "Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.8;                   /* 180% */
  letter-spacing: 0;
  margin: 0 0 8px;
  text-align: left;
}
#about-value .value-text p{
  font-family: "Yu Gothic","游ゴシック",YuGothic,
               "Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
  font-weight: 500;                   /* Medium */
  font-size: 16px;
  line-height: 1.8;                   /* 180% */
  letter-spacing: 0.02em;             /* 2% */
  color: #555;
  margin: 0;
  text-align: left;
}

/* スマホ調整（アイコンサイズ縮小＆縦積み） */
@media (max-width: 720px){
  #about-value .value-item{
    grid-template-columns: 1fr;
    align-items: start;
  }
  #about-value .value-icon img{ width: 120px; }
}
