/* 全体のスタイル */
body {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  font-family: noto sans, Arial, sans-serif;
  background-color: #F1F1F1;
  color: #333333;
  line-height: 1.6;
  width: 100%;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
body.loaded{
  opacity: 1;
}
.wrapper { 
  padding: 1rem;
  display: flex;
  /* justify-content: center; */
  align-items: center;
  flex-direction: column;
  flex-grow: 1;
  /* margin-top: 1rem; */
  box-sizing: border-box; /* パディングを含むサイズ管理 */
  margin: 1rem 2rem 1rem 2rem;
  text-align: center;
  /* min-height: 100vh; */

}

/* ヘッダー */
header {
  display: flex;
  align-items: center;
  text-align: left;
  padding-left: 2rem;
  background: linear-gradient(to right, #6C63FF,#DD5E89);
  color: #FFFFFF;
  width: 100%;
}

.header h1 {
  cursor: pointer;
  transition: color 0.3s ease;
  color: #F1F1F1;
}

.header h1:hover {
  color: #FF6F61;
}

.header p {
  font-size: 1rem;
  margin-left: 1rem;
  color: #F1F1F1;
}

/* メインコンテンツ - 共通スタイル */
h1, p {
  margin: 0;
  color: #333333;
}

/* main-titleセクションの背景に右半分ぼかしを適用 */
.main-title {
  position: relative; /* 位置を相対的に設定 */
  background-image:url(img/main-title.jpg);
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  justify-content: center;
  text-shadow: #333333;
  display: flex;
  justify-content: right;
  align-items: center;
}

.main-title::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0; /* 右側に配置 */
  width: 40%; /* 右半分 */
  height: 100%;
  background-image: url(img/main-title.jpg); /* 同じ背景画像を使用 */
  background-size: cover;
  background-position: center;
  filter: blur(10px); /* 右半分にぼかしを適用 */
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.3);
}
/*
.main-title h1 {
  color: #39ec81;
  position: relative;
  text-align: right;
  padding: 4rem 2rem;
  z-index: 2; 
}*/
.main-title p {
  font-size:24px !important;
  text-shadow: #333333;
  padding: 0;
  font-size: large;
  color: #f1f1f1;
  position: relative;
  text-align: right;
  padding-right: 5rem;
  z-index: 2; /* ぼかしの上にテキストを表示 */
}

/* アプリリスト */
.app-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  /* margin: 2rem auto; */
  padding: 0 1rem;
  box-sizing: border-box;
}

.app-item {
  background-color: #FFFFFF;
  padding: 1.5rem;
  margin: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.app-item h2 {
  color: #FF6F61;
  font-size: 1.5rem;
}

.app-item p {
  margin: 0.5rem 0 1rem;
  color: #666666;
}

.app-item .btn {
  position: relative;
  display: inline-block;
  background-image: linear-gradient(135deg, #DD5E89, #F7BB97);
  border-radius: 30px;
  width: 150px;
  height: 60px;
  line-height: 60px;
  text-decoration: none;
  overflow: hidden; /* はみ出し部分を隠す */
  cursor: pointer;
  text-align: center;
}
.app-item .btn:hover{
  background-color: #6C63FF !important;
  transition: background-color 0.3s ease-in-out;
}

/* ボタンのテキスト共通スタイル */
.btn-text {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  line-height: 60px; /* ボタンと同じ高さにする */
  transition: transform 0.3s ease-in-out;
}


/* ホバー時のテキスト */
.btn-text:nth-child(2) {
  transform: translateY(-100%);
  opacity: 0;
}

/* ホバー時のアニメーション */
.btn:hover .btn-text:nth-child(1) {
  transform: translateY(100%);
  opacity: 0;;
}

.btn:hover .btn-text:nth-child(2) {
  transform: translateY(0);
  opacity: 1;
}

/* フッター */
.footer {
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(to right, #6C63FF,#DD5E89);
  color: #FFFFFF;
  margin-top: auto;
  font-size: 0.9rem;
}

/* Counterページ専用セクション */
.counter-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
}

.counter-display {
  width: 300px;
  font-size: 96px;
  text-align: center;
  margin: 2rem 0;
}

/* ボタン共通スタイル */
button {
  border: none;
  border-radius: 10px;
  font-size: 24px;
  cursor: pointer;
}

/* Counterページ - リセットボタン */
.btn-reset {
  width: 300px;
  height: 80px;
  background-color: #d9d9d9;
  margin-bottom: 2rem;
}

/* Counterページ - 増加・減少ボタンのグループ */
.btn-group {
  display: flex;
  justify-content: center;
  gap: 20px; /* ボタン間のスペース */
}

.btn-increment {
  width: 180px;
  height: 80px;
  background-color: #FF6F61;
  color: #FFFFFF;
  font-size: 32px;
}

.btn-decrement {
  width: 100px;
  height: 80px;
  background-color: #d9d9d9;
}

/* Indexページ - アプリリスト */
.app-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  /* margin:auto; センター揃え */
  padding: 0 1rem; /* 内側の余白を追加 */
}

.app-item {
  background-color: #FFFFFF;
  padding: 1.5rem;
  margin:0.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.app-item h2 {
  color: #FF6F61;
  font-size: 1.5rem;
}

.app-item p {
  margin: 0.5rem 0 1rem;
  color: #666666;
}

.app-item .btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  color: #FFFFFF;
  background-color: #FF6F61;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
  width: 50%;
}

.app-item .btn:hover {
  background-color: #6C63FF;
}

/* rng.html用; */
.wrapper#result{
  width: 300px;
  font-size: 96px;
  text-align: center;
  margin: 2rem 0;
}

#result{
  font-size: 96px;
  color: black;
}
/* エラースタイル */
#result.error {
  font-size: 20px;
  color: red;
}
.number-box{
  padding: 2rem 0;
}
.min-box.max-box{
  padding: 0.5rem 0;
}
.rng-btn{
  width: 300px;
  height: 80px;
  background-color: #FF6F61;
  color: #FFFFFF;
  font-size: 32px;
}
/* guidance-record ========================================== */
.recode-form{
  text-align: left;
}

/* 高解像度化処理　imageUp.html =================================*/
#dragDropArea{
  background-color: #f4f4f4;
  margin: 10px; 
  padding: 10px;
  border: #ddd dashed 5px;
  min-height: 200px;
  width:300px;
  text-align: center;
}
#dragDropArea p{
  color: #999;
  font-weight: bold;
  font-size: 14px;
  font-size:1.4em;
}
#dragDropArea .drag-drop-buttons{
  margin-top: 20px;
  font-size: 12px;
  font-size:1.2em;
}
.drag-drop-buttons input{
  margin:auto;
}
#sendButton{
  margin-left: 300px;
}
#receiveImageArea{
  margin:10px;
  padding: 10px;
  min-height: 200px;
  width: 300px;
}

/* メディアクエリ */
@media (max-width: 768px) {
  body {
      background-color: lightblue;
      height: 100vh;
  }
  /* ヘッダーの設定 ===========================*/
  .header{
    flex-direction: column;
    padding:1rem 0 ;
  }
  .header h1{
    font-size: 1.5rem;
  }
  .header p{
    font-size: 0.8rem;
  }
  /* メインタイトルの設定======================== */
  .main-title {
    position: relative; /* 位置を相対的に設定 */
    background-image: url(img/main-title.jpg);
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    padding: 3rem 0;
  }
  
  .main-title::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0; /* 右側に配置 */
    width: 40%; /* 右半分 */
    height: 100%;
    background-image: url(img/main-title.jpg); /* 同じ背景画像を使用 */
    background-size: cover;
    background-position: center;
    filter: blur(10px); /* 右半分にぼかしを適用 */
    z-index: 1;
  }
  /* app-listの設定=========================== */
  .app-list {
    display: flex;
    margin: 2rem 2rem;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem auto;
    padding: 0 1rem;
  }
}