/* =========================
   HERO（TOP と同じ縦幅にする）
========================= */
#hero.info-hero {
  padding-bottom: 180px !important;
}

.hero-guide-button {
  text-align: center;
  margin-top: 20px;
}
/* =========================
   GUIDE案内
========================= */

.guide-intro {
  text-align: center;
  margin: 20px 0 40px;
}

.guide-label {
  color: #666;
  margin-bottom: 8px;
}

.guide-scroll {
  display: inline-block;
  padding: 16px 0px;
  background: #005BAC;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  width: 20%;
  transition: 0.2s;
  font-size: 20px;
  
}



/* =========================
   GREETING
========================= */
#greeting .greeting-text p {
  margin: 10px 0;
}

/* =========================
   PROFILE 共通
========================= */
.profile-card {
  width: 900px;
  margin: 0 auto 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.profile-card.reverse {
  flex-direction: row-reverse;
}

.profile-photo {
  width: 90%;
  border-radius: 10px;
}

.profile-left{
  width: 43%;
}

profile-right {
  width: 50%;
}

/* 右側を上寄せにする */
.profile-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 30px;
}

.groom-align .profile-role {
  margin: 0 auto 10px auto;
  width: fit-content;
}

/* 名前の margin を詰める（ズレの原因だった） */
.profile-name {
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 2px 0;
}

/* Groom / Bride の下線を短く上品に */
.profile-role {
  font-size: 16px;
  border-bottom: 1px solid #000;
  display: inline-block;
  padding-bottom: 2px;
  width: fit-content;
  margin-bottom: 10px;
}

/* 行間を詰めて写真と高さを揃える */
.profile-items p {
  text-align: left;
  margin: 4px 0;
  line-height: 1.4;
}

/* メッセージ文はカードの外に独立配置 */
.profile-message {
  width: 900px;
  margin: 0 auto 60px;
  text-align: center;
  line-height: 1.7;
}

/* =========================
   GUIDE（リンク集）
========================= */
#guide {
  margin-top: 40px;
}

.guide-buttons {
  width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center; 

}

.info-button {
  display: block;
  width: 40%;
  padding: 16px 0;
  background: #005BAC;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  transition: 0.2s;
}

.info-button:hover {
  background: #004080;
}

@media (min-width: 900px) {
  #wrapper,
  section {
    max-width: 900px;
    margin: 0 auto;
  }
}
@media (min-width: 680px) and (max-width: 899px) {

  #wrapper,
  section {
    width: 100%;
    margin: 0 auto;
  }

  /* ===== HERO ===== */
  #hero {
    padding-bottom: 30px;
  }

  .curved-text svg {
    height: clamp(300px, 60vw, 500px);
  }

  .curved-text text {
    font-size: clamp(24px, 4vw, 40px);
  }

  .hero-invitation {
    font-size: clamp(28px, 5vw, 52px);
  }

  .hero-sub {
    font-size: clamp(16px, 3vw, 26px);
  }

  /* ===== GREETING ===== */
  #greeting .greeting-text p {
    font-size: clamp(15px, 2.6vw, 18px); /* ← 少し小さく調整 */
    line-height: 1.55;
  }

  /* ===== PROFILE ===== */
  .profile-card {
    width: 95%;
    display: flex;
    flex-direction: row;
    gap: 3%;
  }

  .profile-left {
    width: 45%;
  }

  .profile-right {
    width: 55%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .profile-name {
    font-size: clamp(24px, 4vw, 34px);
  }

  .profile-role {
    font-size: clamp(12px, 2.3vw, 16px);
    margin-top: 10px;
  }

  .profile-items {
    width: 100%;
    margin: 0;
  }

  .profile-items p {
    text-align: left;
	font-size: clamp(15px, 2vw, 20px);
    line-height: 1.4;
	padding-bottom: 10px;
  }

  .profile-message {
    width: 90%;
    padding: 0 20px;
    font-size: clamp(14px, 2.3vw, 18px);
  }

  /* ===== GUIDE ===== */
  .guide-intro p {
    font-size: clamp(14px, 2.3vw, 18px);
  }

  .guide-scroll {
    width: 35%;
    font-size: clamp(16px, 3vw, 22px);
  }

  .guide-buttons {
    width: 90%;
    padding: 0 20px;
  }

  .info-button {
    width: 60%;
    font-size: clamp(16px, 2.5vw, 22px);
  }
}
@media (max-width: 679px) {

  #wrapper,
  section {
    width: 100%;
  }

  /* ===== HERO ===== */
  #hero {
    padding-bottom: 20px;
  }

  .curved-text svg {
    height: clamp(300px, 80vw, 550px);
  }

  .curved-text text {
	font-size: clamp(28px, 6vw, 34px);
     letter-spacing: 0.15em;
     font-weight: 600;
     fill: #fff;
   }


  .hero-invitation {
    font-size: clamp(18px, 5vw, 28px);
  }

  .hero-sub {
    font-size: clamp(10px, 3vw, 16px);
  }

  /* ===== GREETING ===== */
  #greeting .greeting-text p {
    font-size: clamp(10px, 3vw, 16px);
    line-height: 1.55;
    margin: 6px 0;
  }

  /* ============================
       PROFILE（スマホだけ縦並び）
     ============================ */

  .profile-card {
    width: 95%;
    display: flex;
    flex-direction: column; /* ← スマホは縦並び */
    align-items: center;
    gap: 16px;
    padding: 0 10px;
  }

  /* 新婦の reverse をスマホでは無効化 */
  .profile-card.reverse {
    flex-direction: column !important;
  }

  .profile-left,
  .profile-right {
    width: 100%;
  }

  .profile-left img {
    width: 80%; /* ← スマホは写真大きめ */
    margin: 0 auto;
    display: block;
  }

  .profile-right {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .profile-name {
    font-size: clamp(16px, 4vw, 22px);
  }

  .profile-role {
    font-size: clamp(10px, 3vw, 14px);
    margin-top: 6px;
  }

  .profile-items {
    width: 100%;
    max-width: 300px; /* ← 読みやすい幅 */
    margin: 0 auto;
  }

  .profile-items p {
    text-align: left;
    font-size: clamp(10px, 3vw, 16px); /* ← 統一したスマホ黄金比 */
    line-height: 1.4;
    padding-bottom: 8px;
  }

  .profile-message {
    width: 92%;
    padding: 0 10px;
    font-size: clamp(10px, 3vw, 16px);
    line-height: 1.55;
  }

  /* ===== GUIDE ===== */
  .guide-intro p {
    font-size: clamp(10px, 3vw, 16px);
  }

  .guide-scroll {
    width: 45%;
    font-size: clamp(12px, 3vw, 16px);
    padding: 10px 0;
  }

  .guide-buttons {
    width: 90%;
    padding: 0 10px;
  }

  .info-button {
    width: 80%;
    font-size: clamp(12px, 3vw, 16px);
    padding: 12px 0;
  }
}