/* ================================
   ヒーローセクション
================================ */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  background-image: url("/images/roof.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

/* ================================
   キャッチコピー・ボタン
================================ */
.catchcopy {
  position: absolute;
  right: 210px;
  top: 40%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 25px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 5px #000;
  font-family: "Noto Serif JP", serif;
}

.contact-btn {
  position: absolute;
  right: 140px;
  bottom: 100px;
  background: #b58456;
  color: white;
  padding: 36px 100px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: bold;
  font-size: 22px;
}

/* ================================
   コンテンツ
================================ */
.content {
  background: #747F8B;
  padding: 40px 20px;
  margin-top: 0;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.card {
  background: #fff;
  flex: 1;                   
  max-width: 400px;          
  padding: 10px 20px 10px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.card {
  background: #fff;
  flex: 1;                   
  max-width: 400px;          
  padding: 10px 20px 10px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

.card h2{
  text-align: center;
  color:#b58456;
  margin-bottom:15px;
  font-size:18px;
}

.card.left{
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.p {
    margin-block-start: 0px;
    margin-block-end: 16px;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}

.card ul {
  list-style: none;
  padding-left: 20px 0px 20px 0px;
  margin: 0;
  text-align: left;
  justify-content: center;
}

.card ul li {
  margin-bottom: 6px;
  line-height: 1.6;
}

/* カード全体を基準にする */
.card {
  position: relative;
  padding: 40px 30px 70px; /* 下にリンク用の余白を確保 */
}

/* 右下リンク */
.card-link {
  position: absolute;
  right: 5px;
  bottom: 25px; /* カード下端から25px */
  margin: 0;
}

.card-link a {
  color: #b58d5b;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}

.card-link a:hover {
  text-decoration: underline;
}

/* ================================
   スマホ対応（ページ固有）
================================ */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }

  .catchcopy {
    left: 30px;
    right: auto;
    font-size: 16px;
  }

  .contact-btn {
    right: 25px;
    bottom: 48px;
    padding: 10px 16px;
    font-size: 14px;
  }

  .content {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
    max-width: 350px;
    padding: 30px 20px 30px; /* SP用に下余白を少し小さく */
  }

  .card-text {
    padding-left: 0;
  }

  .card-link {
    position: static;      /* absolute を解除 */
    margin-top: 16px;
    text-align: right;     /* 右寄せ */
  }

  .card-link a {
    font-size: 0.9rem;
  }
}


