:root {
    --step-width: 750px; /* 1200px内で階段状に収まるよう少し縮小 */
    --step-gap: 35px;   /* 上下方向の重なり具合 */
    --indent: 100px;      /* 右へのずらし幅 */
    --base-shift: 0px;  /* side-gutterで管理するためリセット */
}

.step-container {
    display: flex;
    flex-direction: column;
    gap: var(--step-gap);
    padding: 50px var(--side-gutter);
    width: 100%;
    max-width: 1200px; /* Newsページと統一 */
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    :root {
        --step-width: 600px; /* ステップを細くする */
        --indent: 60px;     /* ずらし幅を小さくする */
    }
    .step {
        font-size: 28px;    /* 文字を少し小さく */
    }
}

.step {
    position: relative;
    width: var(--step-width);
    height: 150px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 15px 30px;
    border-radius: 8px;
    color: white;
    font-size: 36px;
    font-family: "Noto Sans JP", sans-serif;
    letter-spacing: 0.25em; /* 文字間を調整 */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 0; /* h2のデフォルトマージンをリセット */
    transition: all 0.3s ease; /* ホバー効果を滑らかにする */
}

.step .material-symbols-outlined {
    font-size: 1.5em; /* テキストの1.2倍のサイズ */
    vertical-align: middle; /* テキストと中央揃え */
    margin-right: 10px; /* アイコンとテキストの間のスペース */
}

/* ホバー時のスタイル */
.step:hover {
    color: #ddd; /* 文字のトーンを下げる（白から薄いグレーへ） */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); /* 影を大きく・深くして立体感を強調 */
}

/* 階段状のインデント設定 */
.step:nth-child(1) { align-self: flex-start; background-color: #f7a028; margin-left: calc(var(--base-shift) + var(--indent)); }
.step:nth-child(2) { align-self: flex-start; background-color: #f08665; margin-left: calc(var(--base-shift) + var(--indent) * 2); }
.step:nth-child(3) { align-self: flex-start; background-color: #c9a4ac; margin-left: calc(var(--base-shift) + var(--indent) * 3); }
.step:nth-child(4) { align-self: flex-start; background-color: #a4abb1; margin-left: calc(var(--base-shift) + var(--indent) * 4); }

/* 下向き矢印の作成 */
.step:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: -30px; /* 隙間（35px）の中間に配置 */
    right: 40px;   /* 元の右側の位置に戻す */
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #5939da; /* 矢印の色 */
    z-index: 10;
}

/* 788px以下のレスポンシブ設定 */
@media (max-width: 788px) {
    .step:nth-child(1),
    .step:nth-child(2),
    .step:nth-child(3),
    .step:nth-child(4) {
        margin-left: 0;
        align-self: stretch; /* 幅いっぱいに広げる */
    }

    :root {
        --step-width: 100%; /* 幅をいっぱいにする */
        --indent: 0px;      /* ずらしをなくす */
    }

    .step-container {
        padding: 20px 0;    /* 左右のパディングをリセット */
        width: 80%;         /* 左右10%ずつの余白 */
        max-width: none;
    }

    .step {
        height: 120px;      /* 150pxの20%減 */
        font-size: 24px;  /* 36pxの20%減 */
    }

    .step .material-symbols-outlined {
        font-size: 1.2em; /* レスポンシブ時もテキストの1.2倍のサイズを維持 */
    }
    .about-content-background {
        height: auto;
        min-height: 100%;
        -webkit-mask-size: contain;
        mask-size: contain;
    }

}

.about-header {
    position: relative;
    z-index: 10;
    pointer-events: none; /* マウス操作を下の判定レイヤーに透過させる */
}

.about {
  font-family: "Hanson", sans-serif;
  line-height: 0.9;
  text-transform: uppercase;
}

.about h2 {
  text-transform: none;
}

.about h5, .about h3 {
  text-align: center;
}

.about h4, .about h3 {
  text-align: center;
}

.about h4 {
  font-size: clamp(2rem, 12vw, 6rem);
  margin-top: 40px; /* 100px → 40px に縮小 */
  line-height: 1.1; /* 0.9 → 1.1 にして読みやすく */
    }

/* About内のH4からは共通の装飾（横線や大きなマージン）を除去 */
.about-content-foreground h4 {
    margin-top: 100px; /* 指定通り100pxほど下に移動 */
    display: block;
    padding: 0;
    max-width: none;
}
.about-content-foreground h4::before { display: none; }

.about h4 {
   font-size: clamp(2rem, 12vw, 6rem);
   margin-top: 40px;
   line-height: 1.1;
}

.about h3 {
  font-size: clamp(3rem, 5vw, 6rem);
}

/* Aboutページ全体のコンテナ設定 */
.about-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  scroll-margin-top: 0;
  padding: 0;
}

.about {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: var(--pale-marron); /* ベース背景色 */
  overflow: hidden;
}

.about-content-background,
.about-content-foreground {
  width: 100%;
  min-height: 100vh;
  /* 共通変数のパディングを各レイヤー内部に適用 */
  padding: var(--section-top-padding) 0 var(--section-bottom-padding); /* 左右のgutterを0にしてcommon.cssと重複させない */
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-content-foreground {
  position: relative;
  z-index: 1;
  background-color: transparent; /* 背景色を透過に */
  color: var(--text-main);
}

.about-content-background {
  position: absolute;      /* ← 戻す */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;            /* ← ここも戻す */
  min-height: 100%;       /* 必要なら追加 */
  z-index: 2;
  background-color: #cbd4c2;
  color: #323332;
  -webkit-mask: url(#mask-about);
  mask: url(#mask-about);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: auto; /* cover にしていたなら auto に戻す */
  mask-size: cover; /* ← ここも戻す */
}

.smudge-revealer {
  position: fixed; /* 常に画面全体を覆う */
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}
