@import "https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css";

/* body {
  background: #39D;
} */
body {
  background-color: red;
  
  /* SVG fallback for IE 9 (could be data URI, or could use filter) */
  background-image: url(fallback-gradient.svg);
  
  /* Safari 4, Chrome 1-9, iOS 3.2-4.3, Android 2.1-3.0 */
  background-image: -webkit-gradient(linear, left top, right top, from(red), to(#f06d06));
  
  /* Safari 5.1, iOS 5.0-6.1, Chrome 10-25, Android 4.0-4.3 */
  background-image: -webkit-linear-gradient(left, red, #f06d06);
  
  /* Firefox 3.6 - 15 */
  background-image: -moz-linear-gradient(left, red, #f06d06);
  
  /* Opera 11.1 - 12 */
  background-image: -o-linear-gradient(left, red, #f06d06);
  
  /* Opera 15+, Chrome 25+, IE 10+, Firefox 16+, Safari 6.1+, iOS 7+, Android 4.4+ */
  background-image: linear-gradient(to right, red, #f06d06);
  margin: 0px;
  overflow: hidden;
}

.circular-menu {
  width: 250px;
  height: 250px;
  margin: 0 auto;
  position: relative;
}

.circle {
  width: 250px;
  height: 250px;
  opacity: 0;
  
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  transform: scale(0);

  -webkit-transition: all 0.4s ease-out;
  -moz-transition: all 0.4s ease-out;
  transition: all 0.4s ease-out;
}

.open.circle {
  opacity: 1;

  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  transform: scale(1);
}

.circle a {
  text-decoration: none;
  color: white;
  display: block;
  height: 40px;
  width: 40px;
  line-height: 40px;
  margin-left: -20px;
  margin-top: -20px;
  position: absolute;
  text-align: center;

}

.circle a:hover {
  color: #eef;
}

.menu-button {
  position: absolute;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  text-decoration: none;
  text-align: center;
  color: #444;
  border-radius: 50%;
  display: block;
  height: 40px;
  width: 40px;
  line-height: 40px;
  padding: 10px;
  background: #dde;
}

.menu-button:hover {
  background-color: #eef;
}

/* Author stuff */
h1.author {
  text-align:center;
  color: white;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 300;
}

h1.author a {
  color: #348;
  text-decoration:none;
}

h1.author a:hover {
  color: #ddd;
} 


.circular-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-image: url('https://example.com/earth-image.jpg'); /* 地球の画像URL */
  background-size: cover; /* 画像が丸い背景に合わせて拡大 */
  background-position: center; /* 画像が中央に表示されるように */
  box-shadow: 0 4px 8px rgba(22, 20, 54, 0.2); /* 軽い影を追加 */
}


.title {
  color: white;
  text-align: center;
  position: absolute; /* 画面上部に配置 */
  top: 2%; /* 上から10%の位置に配置 */
  left: 50%; /* 横方向に中央配置 */
  transform: translateX(-50%); /* 横方向に中央揃え */
  font-size: 2rem;
  font-family: 'Elixia', sans-serif;
  white-space: nowrap;
}

h3 {
  color: white;
  text-align: center;
  position: absolute; /* 画面上部に配置 */
  top: 10%; /* 上から20%の位置に配置（h1とh3が重ならないように調整） */
  left: 50%; /* 横方向に中央配置 */
  transform: translateX(-50%); /* 横方向に中央揃え */
  font-size: 2rem;
  font-family: 'Elixia', sans-serif;
  white-space: nowrap;
}

h2 {
  color: white;
  text-align: center;
  position: absolute; /* 画面上部に配置 */
  top: 70%; /* 上から20%の位置に配置（h1とh3が重ならないように調整） */
  left: 50%; /* 横方向に中央配置 */
  transform: translateX(-50%); /* 横方向に中央揃え */
  font-size: 2rem;
  font-family: 'Elixia', sans-serif;
  white-space: nowrap;
}
h4 {
  color: white;
  text-align: center;
  position: absolute; /* 画面上部に配置 */
  top: 80%; /* 上から20%の位置に配置（h1とh3が重ならないように調整） */
  left: 50%; /* 横方向に中央配置 */
  transform: translateX(-50%); /* 横方向に中央揃え */
  font-size: 2rem;
  font-family: 'Elixia', sans-serif;
  white-space: nowrap;
}

/* このコードを追加することで、PCだけでなくスマートフォンやタブレットでも快適に閲覧可能なデザインになります。 */
@media (max-width: 768px) {
  /* 背景の調整 */
  body {
    background-color: #333; /* モバイルに優しい配色 */
  }

  /* サークルメニューのサイズ調整 */
  .circular-menu {
    width: 200px;
    height: 200px;
    background-size: cover;
  }

  .circle {
    width: 200px;
    height: 200px;
  }

  .circle a {
    height: 30px;
    width: 30px;
    line-height: 30px;
  }

  .menu-button {
    height: 30px;
    width: 30px;
    line-height: 30px;
  }

  /* タイトルのフォントサイズ調整 */
  .title {
    font-size: 1.5rem;
    top: 5%;
  }

  h3, h2, h4 {
    font-size: 1.2rem;
    top: 15%; /* 高さを調整して要素が重ならないように */
  }

  h2 {
    top: 60%;
  }

  h4 {
    top: 70%;
  }

  /* スクロールを許容する */
  body {
    overflow: auto;
  }
}

@media (max-width: 480px) { /* 更に小さい画面用の調整 */ 
.circular-menu { 
 width: 150px; 
 height: 150px; 
} 

.circle { 
 width: 150px; 
 height: 150px; 
} 

.circle a {
 height: 20px; 
 width: 20px; 
 line-height: 20px; 
 font-size: 0.8rem;
 } 

.menu-button {
 height: 25px; 
 width: 25px; 
 line-height: 25px; 
 padding: 5px; 
} 

.title, h3, h2, h4 {
 font-size: 1rem; 
} 
}
