/* 全体のリセット */
h1,
h2,
h3,
p,
a {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

body {
  font-family: "Noto Sans JP", "Arial", sans-serif;
  background-color: #f7f7f7;
  color: #333;
  font-size: 16px;
  line-height: 1.8;
  padding: 10px;
  margin: 10px 35px 10px 35px;
}

header {
  position: relative;
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.5),
      rgba(51, 51, 51, 0.7)
    ),
    url("../images/path.jpg") center/cover no-repeat; /* 背景画像を追加 */
  color: #fff;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* スクロール時に余計な部分を隠す */
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f7f7f7;
  font-family: "Arial", sans-serif;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* おしゃれな影効果を追加 */
  animation: fadeIn 2s ease; /* アニメーションを適用 */
}

.header .title {
  font-size: 3rem;
  font-weight: bold;
  margin: 20px 0;
  animation: fadeIn 1.5s ease;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5); /* タイトルに影効果 */
}

.header .subtitle {
  font-size: 1.2rem;
  margin-bottom: 20px;
  animation: fadeIn 2s ease;
  color: #e0e0e0; /* 優しいトーンの色に変更 */
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5); /* サブタイトルに影効果 */
}

.header .scroll-indicator {
  margin-top: 50px;
  animation: bounce 5s infinite;
}

.small-header {
  padding: 20px 10px;
  transition: all 0.3s ease;
}

/* text */

.container {
  margin: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.text {
  font-weight: 100;
  font-size: 28px;
  color: #f5f5f5; /* テキストを明るく読みやすい色に変更 */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* テキストに影効果 */
}

/* スクランブルアニメーションのスタイル */
.text > .dud {
  opacity: 0; /* 開始時は透明 */
  display: inline-block;
  vertical-align: top;
  animation: fadeIn 2s ease-in-out; /* フェードインアニメーションを適用 */
}

/* スクロール後の変更 */
body.scrolled .container {
  height: 80%;
  width: 80%;
}

.dud {
  color: #bdbdbd;
}

.main {
  padding: 40px 20px;
  text-align: center;
}

section {
  margin-bottom: 60px;
}

.description {
  margin-bottom: 50px;
}

section p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.description h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: cadetblue;
}

.description p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  text-align: center;
}

.cards {
  text-align: center;
  padding: 15px;
  border: 1px solid #ddd; /* やわらかい境界線 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* カードに影を追加 */
}

.cards h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.card-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  /*display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
}

.card {
  text-decoration: none;
  color: #fff; /* 白い文字に変更 */
  background-size: cover; /* 背景画像をカード全体に表示 */
  background-position: center; /* 中央に画像を配置 */
  border-radius: 10px;
  padding: 20px;
  width: 250px;
  height: 300px; /* 高さを固定 */
  text-align: center;
  position: relative; /* オーバーレイのため */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 背景画像ごとに個別指定 */
.card1 {
  background-image: url("../images/path-to-image1.jpg");
}

.card2 {
  background-image: url("../images/path-to-image2.jpg");
}

.card3 {
  background-image: url("../images/path-to-image3.jpg");
}

/* テキストのオーバーレイ効果 */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* 黒の透明レイヤー */
  z-index: 1;
}

.card h3,
.card p {
  position: relative;
  z-index: 2; /* オーバーレイの上に表示 */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.cta {
  text-align: center;
  margin: 40px 0;
}
.cta a {
  color: #fff;
  text-decoration: none;
  padding: 15px 30px;
  font-size: 1.2rem;
  border-radius: 4px;
  display: inline-block;
}

footer {
  text-align: center;
  padding: 20px;
  background: #000;
  color: #fff;
  margin-top: 40px;
  border-radius: 20px;
}

/* SNSリンク */
/* フローティングアイコンの基本スタイル */
.floating-icons {
  position: fixed;
  bottom: 20px;
  right: 50px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.floating-icons .icon {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: #d1a574;
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  transition: transform 0.3s, background-color 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.floating-icons .icon:hover {
  transform: scale(1.1);
  background-color: #b88a63;
}

/* 各アイコンの固有カラー */
.floating-icons .twitter {
  background-color: #1da1f2;
}

.floating-icons .facebook {
  background-color: #1877f2;
}

.floating-icons .instagram {
  background-color: #e4405f;
}

.floating-icons .contact {
  background-color: #ff7043;
}

/* ポップアップテキストのスタイル */
.floating-icons .icon::after {
  content: attr(aria-label);
  position: absolute;
  right: 60px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.floating-icons .icon:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  body {
    margin: 5px;
  }

  .container {
    margin: 10px;
  }

  .card-list {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }

  .header .title {
    font-size: 2rem;
  }

  .header .subtitle {
    font-size: 1rem;
  }

  .floating-icons {
    right: 12px;
  }

  .floating-icons .icon {
    width: 42px;
    height: 42px;
  }
}
