/*寄付サイト上部のボタン*/
.kifu-fixed {  
    position: fixed;
  top: 20px;
  right: 20px;
  background: #fdff8b;
  color: #51942e;
  font-weight: bold;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: background 0.3s, color 0.3s;
}
.kifu-fixed:hover {
  background: #f0f0f0;
  color: #2d4e2b;
}


/*ヘッダーのデザイン*/
.hero-header {  
  background-size: cover; /* 全体にフィット */
  background-position: center; /* 中央に配置 */
  height: 400px; /* ヘッダーの高さ */
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
    background: 
    linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
    url('../images/Background.jpg');
  background-size: cover;
  background-position: center;
}

 header h1 {
  font-family: 'Kosugi Maru', sans-serif;
  font-size: 4.5rem;
  letter-spacing: 1px;
  font-weight: 500;
  background: white;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

header p{
    font-size: 1.7rem;
}

/*寄付サイトの画面*/
.message-box {
  border: 3px solid #6bbf59;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 600px;
  background-color: #e9f9ec;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(30px);  
}

.message-box.animate {
  animation: fadeInUp 1s ease-out forwards;
}

.message-box h1 {
  font-size: 1.8rem;
  color: #2e7d32;
  margin-bottom: 1rem;
}

.kifu {
    display: inline-block;
  width: 100%;                  /* 幅いっぱいに広がる（親要素に依存） */
  max-width: 500px;             /* 最大500pxまで */
  min-width: unset;             /* スマホではmin-width無効化 */
  min-height: 50px;
  padding: 1rem 2rem;
  font-size: 2rem;
  background-color: #81c784;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  box-sizing: border-box;
  margin: 0 auto; 
}

.kifu:hover {
  background-color: #66bb6a;
  transform: scale(1.05);
}



/* アニメーション */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*ここまで寄付サイトの紹介*/

/*ここはYさんのしょうかいのところ*/
.profile-section {
  padding: 4rem 1rem;
  margin-top: 4rem;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.822)), 
    url(../images/Backwhite.PNG);
  font-family: 'Helvetica Neue', sans-serif;
  overflow: hidden;
}

.profile-section1 {
  padding: 1rem 1rem;
  margin-top: 4rem;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.822)), 
    url(../images/Backwhite.PNG);
  font-family: 'Helvetica Neue', sans-serif;
  overflow: hidden;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid #83dafc;
  border-radius: 1.7rem;
  box-shadow: 0 8px 20px rgba(196, 219, 175, 0.06);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-wrap: wrap;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.profile-image img {
  max-width: 900px;
  height: auto; 
  padding:1rem;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.profile-image1 img {
  max-width: 700px;
  width: 30%;
  height: auto; /* ← これが有効。1つ前の height: 30% は上書きされるので削除してOK */
  padding: 1rem;
  margin-left: 5rem;
  margin-top: 3rem;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.profile-content {
  display: flex;
    flex-direction: column;
    align-items: flex-start; 
    align-items: left;
}

.profile-content1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    align-items: left;
    /*height: 200px;*/
}
.profile-content h4 {
  font-size: 1.2rem;
  margin: 10px 30px;/* pタグと同じ左右マージンに */
  color: #333;
  text-align: left;
  width: 100%;
}
.profile-content1 h4 {
  font-size: 1.2rem;
  margin: 10px 30px; /* pタグと同じ左右マージンに */
  color: #333;
  text-align: left;
  width: 100%;
}

.profile-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.profile-content p {
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 10px 30px;
  text-align: left;
  color: #555;
}

.profile-content1 p {
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 10px 30px;
  text-align: left;
  color: #555;
}

/*アイキャッチ画像配置*/
.ichatch-image{
  display: block;
  margin: 0 auto;
  width: 70%;
  animation: fadeIn 1.5s ease-in-out;
}



@media (max-width: 768px) {
   body {
    font-size: 12px;
  }
  .container {
    flex-direction: column;
    text-align: center;
  }

  .profile-image img {
    width: 100%;
    max-width: 300px;
  }

  .kifu {
    font-size: 1.5rem;
    padding: 0.8rem 1.5rem;
  }

  .ichatch-image { width: 100%; }

  .profile-image1 img{
    width:70%;
    margin:auto;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 10px;
  }
}


