/* ===== reset ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Yu Gothic", "游ゴシック体", sans-serif;
  background: #000;
  color: #fff;
  overflow: hidden; /* PCでは全体スクロール禁止 */
}

/* ===== layout ===== */
.about-layout {
  height: calc(100vh - 80px); /* ヘッダー分 */
}

/* ===== image + text container ===== */
.about-image {
  display: flex;
  flex-direction: row-reverse; /* ★ 方法①：PCで左右反転 */
  height: 100%;
}

/* ===== image ===== */
.about-image img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== text (PC) ===== */
.about-text {
  width: 50%;
  padding: 40px 48px;
  overflow-y: auto; /* テキストのみスクロール */
}

/* ===== text styles ===== */
.name {
  font-size: 1.8rem;
}
.name span {
  font-size: 1rem;
  margin-left: 12px;
  font-weight: normal;
}
.line {
  width: 240px;
  height: 1px;
  background: #666;
  margin: 12px 0 24px;
}
.about-text p {
  font-size: 0.9rem;
  line-height: 1.9;
  margin-bottom: 0.7em;
}
.section-title {
  margin: 20px 0 10px;
}
.work-list li {
  margin-bottom: 0.4em;
}

/* =========================
   SP（レスポンシブ）
========================= */
@media (max-width: 768px) {

  /* ===== 全体スクロール禁止 ===== */
  body {
    overflow: hidden;
  }

  /* ===== レイアウト固定 ===== */
  .about-layout {
    height: calc(100svh - 80px); /* ヘッダー分を引く */
  }

  /* ===== 画像コンテナ ===== */
  .about-image {
    display: block;             /* flex 完全解除 */
    position: relative;
    height: 100%;
  }

  .about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* ===== テキスト（唯一のスクロール領域） ===== */
  .about-text {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    padding: 24px 20px;
    background: rgba(0,0,0,0.6);

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    z-index: 2;

    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    line-height: 1.9;
  }
}