body {
  font-family: "Shippori Mincho", serif;
  font-weight: 400;
  font-style: normal;
}

header {
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100%;
  padding: 24px 0;
}
header .logo {
  font-family: "Noto Serif", serif;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}
.top {
  /* background-image:url(../images/image7.jpg); */

  background-size: cover;
  background-position: center;
  height: 600px;
  position: relative;
}
.topimg {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.odradek {
  width: 100%;
  height: 600px;
}

.top .box {
  color: darkblue;
  position: absolute;
  bottom: 40px;
  left: 36px;
}

.about {
  width: 70%;

  margin: 1rem auto;
}

.profile-container {
  display: flex;
  max-height: 500px;
  gap: 20px;
  justify-content: center;
  background-color: rgb(219, 248, 255);
  padding: 20px;
  margin: 20px;
}

.cardprf1 {
  width: 60%;
}

.cardprf2 {
  width: 35%;

  text-align: center;
  padding-top: 30px;
}

.syumi-list {
  display: inline-block;

  flex-direction: column;
  justify-content: center;

  gap: 20px;
  list-style: none;
  padding: 0;
}

.syumi1,
.syumi2 {
  align-items: center;
  margin-bottom: 10px;
}
.proficon1,
.proficon2 {
  width: 10%;
  margin-right: 10px;
  vertical-align: middle;
}

.skill {
  background-color: rgb(242, 252, 252);
}

.card-containers {
  text-align: center;
  margin: auto;
  padding: 20px;
}

.labelbanner {
  text-align: center;
}

/* row1「横並びの行」にする */
:is(.row1) {
  display: flex; /* 中の要素を横に並べる */
  gap: 20px; /* 画像同士の隙間 */
  /* background-color: cornflowerblue; 全体の背景色（必要なら） */
  padding: 20px; /* 内側の余白 */
  margin-bottom: 40px; /* 各行の間の隙間 */
  justify-content: center; /* 中身を中央に寄せる */
}

/* 中の各カード（画像が入っている箱）の設定 */
:is(.card-banner1, .card-banner2, .col) {
  flex: 1; /* 均等な幅で伸び縮みさせる */
  max-width: 500px; /* 大きくなりすぎないように制限 */
}

/* 画像が箱からはみ出さないように */
:is(.row1, .row2, .row3) img {
  width: 100%;
  height: auto;
  display: block;
}

/* row2 */

.row2 {
  text-align: center;
  justify-content: center;
}

.cardsites {
  display: flex;
  gap: 20px;
  justify-content: center;
  /* background-color: cornflowerblue; */
  padding: 20px;
}
.cardsite1 {
  width: 80%;
}

.contact {
  text-align: center;
  width: 70%;
  margin: 0 auto;
  padding: 20px;
  background-color: rgb(242, 252, 252);
}

/* -------------------------------------------
   スマホ・タブレット用設定 (画面幅768px以下)
---------------------------------------------- */
@media screen and (max-width: 768px) {
  /* 全体の幅を広げて余白を調整 */
  .about,
  .contact {
    width: 90%;
    margin: 1rem auto;
  }

  /* プロフィール部分：縦並びにする */
  .profile-container {
    flex-direction: column;
    max-height: none; /* 高さ制限を解除 */
    padding: 15px;
  }

  .cardprf1,
  .cardprf2 {
    width: 100%;
    text-align: left;
  }

  /* ★バナー部分：横スクロールできるようにする */
  .row1 {
    display: flex;
    overflow-x: auto; /* 横はみ出しをスクロール許可 */
    white-space: nowrap; /* 中身を折り返さない */
    -webkit-overflow-scrolling: touch; /* 指に吸い付く滑らかスクロール */
    gap: 15px;
    padding-bottom: 10px; /* スクロールバー用の隙間 */
    justify-content: flex-start; /* 左端から並べる */
  }

  /* スクロールする各カードのサイズを固定 */
  .card-banner1,
  .card-banner2 {
    flex: 0 0 280px; /* 幅280pxで固定（画面からはみ出させる） */
  }

  /* トップ画像の高さ調整 */
  .top,
  .odradek {
    height: 350px;
  }

  /* サイト模写部分：縦並び */
  .cardsites {
    flex-direction: column;
  }

  .cardsite1 {
    width: 100%;
  }
}
