/* Hero Section Responsive Tweaks (2025-06-24) */

/* デフォルト状態（PCサイズ）ではkv-catchphraseを表示、kv-catchphrase-spを非表示 */
.kv-catchphrase {
  display: block;
}

.kv-catchphrase-sp {
  display: none;
}

/* Tablet and below */
@media screen and (max-width: 992px) {

.kv-catchphrase {
  display: none;
}

.kv-catchphrase-sp {
  display: block;
}

  .promo-badge-pc {
    display: none;
  }

  .promo-badge-sp {
    display: block;
  }

  /* 「賃貸住宅管理の専門家になれる」 */
  .kv-catchphrase .catchphrase-line1,
  .catchphrase-line1 {
    font-size: 24.632px;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: 1.232px;
    /* Figma tracking 1.2316px */
    color: #505050;
    margin-bottom: 22px;
    text-wrap: nowrap;
  }

  .kv-catchphrase .catchphrase-line1-small,
  .catchphrase-line1-small {
    font-size: 21.152px;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: 1.058px;
    color: #505050;
  }

  /* 「賃貸不動産」「経営管理士」 */
  .kv-catchphrase .catchphrase-line2,
  .catchphrase-line2 {
    font-size: 45.107px;
    font-weight: 700;
    line-height: 110%;
    letter-spacing: 2.255px;
    color: #25aac5;
    /* Figma: bridge/GreenBlue */
  }

  /* 「をご存じですか？」 */
  .kv-catchphrase .catchphrase-line3,
  .catchphrase-line3 {
    font-size: 22.262px;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: 1.113px;
    color: #505050;
    display: block;
    margin-top: 22px;
  }

  .promo-main-text {
    font-size: 29.585px;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: 1.479px;
  }

  /* reset margins for mobile */
  .kv-catchphrase h1,
  .kv-catchphrase p {
    margin: 0;
  }

  /* 「賃貸不動産」と「経営管理士」を別々の行に */
  .kv-catchphrase .catchphrase-break,
  .catchphrase-break {
    display: block;
  }

  .kv-catchphrase .catchphrase-line2-small,
  .catchphrase-line2-small {
    display: inline-block;
    vertical-align: top;
  }

  .hero-section {
    padding: 40px 20px 20px;
    background-position: center bottom;
  }

  .kv-promo-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    margin-top: 24px;
    flex-wrap: nowrap;
    gap: 16px;
  }

  .kv-container {
    width: 100%;
    max-width: none;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .kv-text {
    width: 100%;
    max-width: none;
    text-align: center;
    padding: 0 8px;
  }

  .kv-image {
    position: relative;
    top: -20px;
    right: 0;
    margin: 24px auto 0;
    z-index: 0;
    height: 281px;
  }

  .kv-person-image {
    max-width: 225.875px;
    margin: 0 auto;
  }

  .kv-caption-1 {
    position: absolute;
    /* top: -20px;
    right: 310px; */

    color: #505050;
    font-size: 10.642px;
    font-weight: 400;
    line-height: 7.094px;
    letter-spacing: -0.426px;
  }

  .kv-caption-2 {
    position: absolute;
    /* top: 25px;
    right: 325px; */

    color: #505050;
    font-size: 10.642px;
    font-weight: 400;
    line-height: 7.094px;
    letter-spacing: -0.426px;
  }

  .promo-badge {
    position: absolute;
    bottom: 177px;
    left: 24px;
    width: 80px;
    height: 80px;
  }

  .promo-badge-supplement {
    position: absolute;
    bottom: 160px;
    left: 32px;
    font-size: 8px;
    font-weight: 400;
    line-height: 140%;
  }

  .hero-section::before {
    content: "";
    position: absolute;
    top: 351px;
    left: 0;
    width: 100%;
    height: 281px;
    /* SVGの高さ */
    background-color: var(--color-light-blue);
    clip-path: polygon(0 35%, 100% 0, 100% 100%, 0 100%);
    z-index: 0;
  }
}

/* タブレット特有の調整（768px-992pxの範囲、特に820px対応） */
@media screen and (min-width: 769px) and (max-width: 992px) {  
  .kv-container {
    padding: 40px 20px 0;
    width: 100%;
  }

  .kv-text {
    width: 100%;
    max-width: none;
    text-align: center;
    padding: 0 16px;
  }

  .kv-person-image {
    max-width: 280px;
  }

  .promo-badge {
    position: absolute;
    bottom: 137px;
    left: 144px;
    width: 106px;
    height: 106px;
  }

  .promo-badge-supplement {
    position: absolute;
    bottom: 115px;
    left: 162px;
  }

  .kv-text {
    width: 100%;
    height: 575px;
    text-align: center;
  }

  /* キャプションの位置調整 */
  .kv-caption-1 {
    top: -5px;
    right: 545px;
  }

  .kv-caption-2 {
    top: 45px;
    right: 565px;
  }

  .hero-section::before {
    content: "";
    position: absolute;
    top: 521px;
    left: 0;
    width: 100%;
    height: 281px;
    /* SVGの高さ */
    background-color: var(--color-light-blue);
    clip-path: polygon(0 35%, 100% 0, 100% 100%, 0 100%);
    z-index: 0;
  }
}

/* Mobile */
@media screen and (max-width: 768px) {

  .kv-text {
    width: 100%;
    height: 530px;
    text-align: center;
  }

  .kv-image {
    position: relative;
    right: 0;
    margin: 24px auto 0;
    z-index: 0;
    height: 281px;
  }

  /* 人物画像のサイズ調整 */
  .kv-person-image {
    max-width: 240px;
  }


  /* キャプションの位置調整 */
  .kv-caption-1 {
    top: -5px;
    right: 485px;
  }

  .kv-caption-2 {
    top: 45px;
    right: 505px;
  }

  .promo-badge {
    position: absolute;
    bottom: 177px;
    left: 144px;
  }

  .promo-badge-supplement {
    position: absolute;
    bottom: 160px;
    left: 152px;
  }
}

@media screen and (min-width: 481px) and (max-width: 592px) {

  /* キャプションの位置調整 */
  .kv-caption-1 {
    top: -5px;
    right: 345px;
  }

  .kv-caption-2 {
    top: 45px;
    right: 365px;
  }

  .promo-badge {
    position: absolute;
    bottom: 164px;
    left: 64px;
    width: 80px;
    height: 80px;
  }

  .promo-badge-supplement {
    position: absolute;
    bottom: 145px;
    left: 69px;
  }
}

/* Small Mobile */
@media screen and (max-width: 480px) {

  /* 「賃貸住宅管理の専門家になれる」 */
  .kv-catchphrase .catchphrase-line1,
  .catchphrase-line1 {
    font-size: 24.632px;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: 1.232px;
    /* Figma tracking 1.2316px */
    color: #505050;
    margin-bottom: 22px;
  }

  .kv-catchphrase .catchphrase-line1-small,
  .catchphrase-line1-small {
    font-size: 21.152px;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: 1.058px;
    color: #505050;
  }

  /* 「賃貸不動産」「経営管理士」 */
  .kv-catchphrase .catchphrase-line2,
  .catchphrase-line2 {
    font-size: 45.107px;
    font-weight: 700;
    line-height: 110%;
    letter-spacing: 2.255px;
    color: #25aac5;
    /* Figma: bridge/GreenBlue */
  }

  /* 「をご存じですか？」 */
  .kv-catchphrase .catchphrase-line3,
  .catchphrase-line3 {
    font-size: 22.262px;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: 1.113px;
    color: #505050;
    display: block;
    margin-top: 22px;
  }

  .promo-main-text {
    font-size: 29.585px;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: 1.479px;
  }

  /* reset margins for mobile */
  .kv-catchphrase h1,
  .kv-catchphrase p {
    margin: 0;
  }

  /* 「賃貸不動産」と「経営管理士」を別々の行に */
  .kv-catchphrase .catchphrase-break,
  .catchphrase-break {
    display: block;
  }

  .kv-catchphrase .catchphrase-line2-small,
  .catchphrase-line2-small {
    display: inline-block;
    vertical-align: top;
  }

  .kv-promo-banner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    margin-top: 24px;
    flex-wrap: nowrap;
    gap: 16px;
  }

  .hero-section {
    padding: 29px 0 0;
    background-position: center bottom;
    width: 100%;
    height: auto;
  }

  .kv-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .kv-text {
    width: 100%;
    height: 540px;
    text-align: center;
  }

  .kv-person-image {
    height: 281px;
  }

  /* reset margins for small mobile */
  .kv-catchphrase h1,
  .kv-catchphrase p {
    margin: 0;
  }

  /* 「賃貸不動産」と「経営管理士」を別々の行に */
  .kv-catchphrase .catchphrase-break,
  .catchphrase-break {
    display: block;
  }

  .kv-catchphrase .catchphrase-line2-small,
  .catchphrase-line2-small {
    display: inline-block;
    vertical-align: top;
  }

  .promo-main-text {
    font-size: 24.632px;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: 1.232px;
  }

  /* 小型端末用キャッチフレーズ調整 - Figma準拠 */
  .kv-catchphrase .catchphrase-line2,
  .catchphrase-line2 {
    color: #25aac5;
    font-size: 45.107px;
    font-weight: 700;
    line-height: 110%;
    letter-spacing: 2.255px;
  }

  .kv-catchphrase .catchphrase-line3,
  .catchphrase-line3 {
    color: #505050;
    margin-top: 22px;
    text-align: center;
    font-size: 22.262px;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: 1.113px;
  }

  .kv-catchphrase .catchphrase-line1,
  .catchphrase-line1 {
    font-size: 24.632px;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: 1.232px;
    /* Figma tracking 1.2316px */
    color: #505050;
    margin-bottom: 22px;
  }

  .kv-catchphrase .catchphrase-line1-small,
  .catchphrase-line1-small {
    font-size: 21.152px;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: 1.058px;
    color: #505050;
  }

  .promo-button {
    color: var(--color-primary);
    border: 1px solid var(--color-button-border);
    padding: 3px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 11.185px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    letter-spacing: 0;
    line-height: 1.5;
    margin-top: 5px;
    cursor: pointer;
  }

  .promo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .text-primary {
    color: var(--color-primary);
    font-size: 29.585px;
    font-weight: 700;
    letter-spacing: 1.479px;
  }

  .text-dark {
    color: var(--color-dark-gray);
    font-size: 29.585px;
    font-weight: 700;
    letter-spacing: 1.479px;
  }

  .hero-section::before {
    content: "";
    position: absolute;
    top: 310px;
    left: 0;
    width: 100%;
    height: 281px;
    /* SVGの高さ */
    background-color: var(--color-light-blue);
    clip-path: polygon(0 35%, 100% 0, 100% 100%, 0 100%);
    z-index: 0;
  }

  /* キャプションの位置調整 */
  .kv-caption-1 {
    top: -15px;
    left: 45px;
  }

  .kv-caption-2 {
    top: 30px;
    left: 30px;
  }

  .promo-badge {
    position: absolute;
    bottom: 177px;
    left: 30px;
  }

  .promo-badge-supplement {
    position: absolute;
    bottom: 160px;
    left: 37px;
  }
}

/* Extra Small Mobile - 400px以下の小型モバイル端末用 */
@media screen and (max-width: 400px) {
  h2 {
    font-size: 28px;
  }

  .title-bar {
    padding: 15px 10px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    display: block;
    min-height: 60px;
    overflow: visible;
  }

  .title-bar h2 {
    font-size: 28px;
    font-weight: 700;
  }

  .kv-text {
    padding: 0 10px;
    height: 540px;
  }

  /* プロモーションバナーの調整 */
  .kv-promo-banner {
    margin-top: 16px;
    gap: 10px;
  }

  .promo-main-text {
    font-size: 22px;
    letter-spacing: 1px;
  }

  .promo-badge-text-small {
    font-size: 12px;
  }

  .promo-badge-text-large {
    font-size: 18px;
  }

  .promo-button {
    font-size: 10px;
    padding: 2px 12px;
  }

  /* ヒーローセクション背景の調整 */
  .hero-section::before {
    top: 290px;
  }

  /* キャプションの位置調整 */
  .kv-caption-1 {
    top: -15px;
    left: 45px;
  }

  .kv-caption-2 {
    top: 30px;
    left: 30px;
  }

}

/* 超小型モバイル向け（375px以下） */
@media screen and (max-width: 375px) {

  /* キャプションの位置調整 */
  .kv-caption-1 {
    top: -15px;
    left: 45px;
  }

  .kv-caption-2 {
    top: 30px;
    left: 30px;
  }

  .promo-badge {
    position: absolute;
    bottom: 177px;
    left: 14px;
    width: 80px;
    height: 80px;
  }

  .promo-badge-supplement {
    position: absolute;
    bottom: 160px;
    left: 22px;
    font-size: 8px;
    font-weight: 400;
    line-height: 140%;
  }

  .title-bar h2 {
    font-size: 24px;
    font-weight: 700;
  }

  .kv-text {
    padding: 0 10px;
    height: 537px;
  }

    /* ヒーローセクション背景の調整 */
  .hero-section::before {
    top: 290px;
  }

  .catchphrase-line1{
    font-size: 20.632px;
  }
}
