*{
  margin: 0;
  /* padding: 0; */
  box-sizing: border-box;
  /*safariなどスマホブラウザで横スクロールを禁止する記述*/
  /* 全要素の余白とパディングをリセットし、ボックスのサイズ計算をコンテンツ+パディング+ボーダーに設定 */
  overflow-x: hidden;
  /* Safariなどのスマホブラウザで横スクロールを禁止する設定 */
}

/*ロゴのサイズをフレキシブル表示に*/
.logo{
  width: 100%;
}

.pc{ display: block !important;}
.mobile{ display: none !important;}
/* PC向けには表示する要素、モバイル向けには非表示にする要素を指定 */

@media screen and (max-width: 1024px){
  .pc{ display: block !important;}
  .mobile{ display: none !important;}
  /* このメディアクエリの範囲内でPC向けの要素を表示、モバイル向けの要素を非表示に設定 */
}


@media screen and (max-width: 768px){
  body{
    position: relative;
    overflow-x: hidden;
    /* 画面幅が768px以下の場合、bodyの横スクロールを禁止 */
  }

  .pc{ display: none !important;}
  .mobile{ display: block !important;}
  /* 画面幅が768px以下の場合、PC向けの要素を非表示、モバイル向けの要素を表示 */
}

main {
  text-align:center;
  /* メインコンテンツのテキストを中央揃え
  padding: 0 16px; */
}

/* 以下はSNSアイコンの表示を揃える指定 */
.box {
  padding:  10px;             /* 余白指定 */
  display: flex;              /* フレックスボックスにする */
  flex-wrap: wrap;            /* 折り返し可能に */
  justify-content:center;     /*内のアイテムが水平方向に中央に配置される*/
}

.box-item {
  padding:  10px;             /* 余白指定 */
  margin:  10px;              /* 外側の余白 */
  width: 15%;                 /* 幅指定 */
  /*border-radius:  5px;         角丸指定 */
}

.box-item img {
 border-radius: 2vw; /*横幅に応じた丸角*/
 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 以下はSNSｱｲｺﾝのスマホ上の表示を整える指定 */
@media screen and (max-width: 768px) {
  .box-item {
    padding:  5px;             /* 余白指定 */
    width: 20%; /* アイコンの幅を調整 */
    text-align: center; /* テキストを中央揃え */ 
  }

  .box-item img {
  width: 60px; /* アイコンのサイズ */
  height: 60px; /* アイコンのサイズ */
  }

  .box-item span {
  font-size: 12px; /* 文字のサイズ */
  }
}/* SNSｱｲｺﾝのスマホ上の表示設定は以上 */

h2 {
  color: #5bc5d6;
  text-decoration: none;
  padding-top: 100px;
  /* h2要素のテキストカラーを設定し、上部に余白を追加 */
}

h3 {
  color: #feb856;
  text-decoration: none;  
  padding: 0;
  margin:0 auto;
  font-size: larger;
  font-weight:bold;
  /* h3要素のテキストカラーやスタイルを設定し、中央揃えに */
}

h4 {
  color: #5bc5d6;
  text-decoration: none;
  font-size: larger;
  font-weight:bold;
  margin-top: 0 auto; /* 必要に応じて調整 *//* h4要素のテキストカラーを設定し、上部に余白を追加 */
}

  header { /*以下ドットインストールメニュー講義内容転記*/
  display: flex;
  padding: 0 16px;
  background: #bbcec2; 
  }
  
  header h1 {
  margin: 0 auto;
  font-size: 22px;
  line-height: 64px;
  }
  
  .sp-menu {                 /*alt="ｱｲｺﾝMenu"の装飾について*/
  margin-left: auto;
  }
  
  .sp-menu #open {
  font-size: 32px;
  line-height: 64px;
  cursor: pointer;
  }
  
  .sp-menu #open.hide{ /*以下はハンバーガーメニューを非表示にする指定*/
  display: none;
  }
    
  .overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background:  #d7e6e6;/*rgba(255,255,255,0.95);*/
  text-align: center;
  padding: 64px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s;  /*はメニュー選択後のアニメーションを加える指定*/
  }
  
  .overlay.show{ /*JavaScliptのクリック後の動作(show)を指定*/
  opacity: 1;
  pointer-events: auto;
  }
  
  .overlay #close {  /*以下はクリック前の動作*/
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 32px;
  cursor: pointer;
  }
  
  .overlay ul{
  list-style-type: none;
  margin: 0;
  padding: 0;
  }
  
  .overlay li{
  margin-top: 24px;
  /*↓ liに対して透明度の設定 */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s, transform .3s;
  }
  
  .overlay.show a {
  color: #7ea9aa;/*Humbergerメニューの文字色*/
  font-size: larger;
  font-weight:bold;
  }

  .overlay.show li {
  opacity: 1;
  transform: none;
  }
  
  /*↓　それぞれのMenuが別々に遅延して表示されるようにする指定*/
  .overlay.show li:nth-child(1) {
  transition-delay: .1s;
  }
  
  .overlay.show li:nth-child(2) {
  transition-delay: .2s;
  }
  
  .overlay.show li:nth-child(3) {
  transition-delay: .3s;
  }
  
  /*↓　PC表示の時の設定について*/
  @media(max-width: 768px){    /*画面の幅が768px以上の場合*/
  .pc-menu {
  display: none;
  }}

  @media(min-width: 768px){    /*画面の幅が768px以上の場合*/
  .pc-menu {                   /*alt="ｱｲｺﾝClose"の装飾について*/
      margin-left: auto;
  } 
  
  .pc-menu ul {
      list-style-type: none;
      margin: 0;
      padding: 0;
      display: flex;
      text-align: center;
  }
  
  .pc-menu a:hover {
      background: #f2f2f2;
  }
  
  .pc-menu a {
      display: block;
      width: 80px;
      line-height: 64px;
      color: #40322d;/*PCヘッダーメニューの文字色*/
  }
  
  .sp-menu {
      display: none;
  }
} /*ドットインストールメニュー講義内容転記は以上*/

.flex-profile-box {
  display: flex; /* フレックスボックスを適用 */
  justify-content: space-around; /*flexアイテムの両側に均等な余白*/
  min-height: 50vh; /* */
}

.profile-card {
  background-color: #ebf3ec;
  border-radius: 2vw; /*横幅に応じた丸角*/
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  /* width: 80vw; 画面幅の80％を使用*/
  width: 350px;  /*幅を設定*/
  max-height: 700px; /*高さを設定*/
  margin:3em auto;  /* 上下のBOXの間隔を指定 */
  padding: 3vw; /* 内側の余白も画面幅に応じて調整 */
}

.profile-img {
  display: block; /* 画像をブロック要素として扱う */
  margin: 0 auto; /* 画像の上下余白をゼロに */
  width: 20vw;
  height: 20vw;
  max-width: 150px;  /*最大幅を設定*/
  max-height: 150px; /*最大高さを設定*/
  margin-bottom: 1vw;
  object-fit: cover;
  border-radius: 50%; /* 要素の角を丸くするためのプロパティ */
  border: 0.3vw solid #ddd; /* 枠も画面幅に応じて調整 */
}

/* 以下はプロフィールBOXのスマホ上の表示を整える指定 */
@media screen and (max-width: 1024px) {
  .flex-profile-box {
    display:flex ;
    flex-direction: column;
    display: inline-block;     /**/
    min-height: 50vh; /* gap: 20px; */
    padding: 50px; /*全ての方向（上、右、下、左）に 50ピクセル の余白を作る*/
  }

  .profile-card {
    background-color: #ebf3ec;
    border-radius: 2vw; /*横幅に応じた丸角*/
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    /* width: 80vw; 画面幅の80％を使用*/
    max-width: 300px;
    margin:3em auto;  /* 上下のBOXの間隔を指定 */
    /*column-gap: 20px; padding: 5vw; 内側の余白も画面幅に応じて調整 */
  }   

  .profile-img {
  display: block; /* 画像をブロック要素として扱う */
  }
}


footer {
  background: #bbcec2; 
  padding:1em;
  margin-top:100px;
  /* フッターの背景色を設定し、内側の余白と上部にマージンを追加 */
}
  
footer p {
  font-size: .8em;
  color: #fff;
  max-width: 800px;
  padding: 0;
  text-align:center;
  margin:0 auto;
  font-weight:bold;
  /* フッター内のテキストスタイルを設定し、中央揃えに */
}
  
  /* 以下はSNSアイコンの表示を揃える指定 */

.box-items {
  padding:  10px;             /* 余白指定 */
  margin:  10px;              /* 外側の余白 */
  width: 15%;                 /* 幅指定 */
  text-align: center; /* テキストを中央揃え */ 
  /*border-radius:  5px;         角丸指定 */
}

.box-items img {
width: 70px; /* アイコンのサイズ */
height: 70px; /* アイコンのサイズ */
border-radius: 1vw; /*横幅に応じた丸角*/
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 以下はFooterのSNSｱｲｺﾝのスマホ上の表示を整える指定 */
@media screen and (max-width: 768px) {
  .box-items {
    padding:  5px;             /* 余白指定 */
    width: 20%; /* アイコンの幅を調整 */
    text-align: center; /* テキストを中央揃え */ 
  }

  .box-items img {
  width: 50px; /* アイコンのサイズ */
  height: 50px; /* アイコンのサイズ */
  }

  .box-items span {
  font-size: 12px; /* 文字のサイズ */
  color: #fff;
  }
}/* FooterのSNSｱｲｺﾝのスマホ上の表示設定は以上 */

  