/* =========================
   ページタイトル
========================= */
#hoshou_faq h1 {
  font-size: 1.25rem;
  background: url(../images/hoshou/main.svg) no-repeat right center;
  background-size: 28%;
}

@media (min-width: 768px) {
  #hoshou_faq h1 {
    font-size: 2rem;
    background: url(../images/hoshou/main.svg) no-repeat right center;
    background-size: 20%;
  }
}

@media (min-width: 992px) {
  #hoshou_faq h1 {
    font-size: 3.25rem;
    background: url(../images/hoshou/main.svg) no-repeat right center;
    background-size: 21%;
  }
}
/* ===============================
   #section-1 の全体レイアウト
================================ */
/* section-1 を中央配置 */
#section-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacer);
    padding: var(--spacer);
    position: relative;
    padding-bottom:83%;
  }
  
  /* ===============================
     タイトル (h1) のスタイル
  ================================ */
  #section-1 h1 {
    position: relative;
    z-index: 2; /* テキストを背景画像の上に配置 */
    line-height:0.8;
    text-align:center;
  }
  
  #section-1 .title-pre {
    font-size: 1.25rem;
    line-height: 1.4 !important;
  }
  
  #section-1 .title-main {
    font-size: 1.75rem;
    color: var(--color-blue);
    line-height: 1.4 !important;
  }
  @media (min-width: 768px) {
    #section-1 h1 {
      text-align:left;
    }
  }


  
/* ===============================
    head-menu のスタイル
================================ */
#section-1 .head-menu {
  display: flex;
  flex-direction: column;
  gap: var(--spacer);
  position: relative;
  z-index: 2; /* メニューのテキストを背景画像の上に配置 */
  padding: var(--spacer);
}
/* head-menu の背景ハイライト */
#section-1 .head-menu p span::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: -0.05em;
  width: 2rem;
  height: 2em;
  background: linear-gradient(transparent 60%, rgb(31, 120, 229, 0.1) 60%);
}

@media (min-width: 768px) {
  #section-1 .head-menu p span::before {
    left: -2.5rem;
    width: 2.5rem;
  }
  #section-1 .head-menu p span::after {
    right: -2.5rem;
    width: 2.5rem;
  }
}

@media (min-width: 992px) {
  #section-1 .head-menu p span::before {
    left: -3.7rem;
    width: 3.7rem;
  }
  #section-1 .head-menu p span::after {
    right: -3rem;
    width: 3rem;
  }
}
/* head-menu 内のテキスト */
#section-1 .head-menu p {
  font-size: 1rem;
  position: relative;
  padding-left: 2rem;  /* アイコン用のスペース */
}
#section-1 .head-menu p span {
  display: inline;
  position: relative;
  padding: 0.25em 0;
  background: linear-gradient(transparent 60%, rgba(31, 120, 229, 0.1) 60%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  text-shadow: 0px 2px 3px rgba(0, 0, 0, 0.10);
}
  
  /* ===============================
     head-menu のアイコン (SVG)
  ================================ */
  /* 各 p の前に SVG アイコンを挿入 */
  #section-1 .head-menu p::before {
    width: 3rem;
    height: 1.6rem;
    background-color: var(--color-blue);
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="87" height="65" viewBox="0 0 87 65" fill="none"%3E%3Cpath d="M0 50.3132H23.0602V64.9879L0 54.506V50.3132Z" fill="%23012261"/%3E%3Cpath d="M0 0H64.988L87 27.253L64.988 54.506H0V0Z" fill="%231F78E5"/%3E%3C/svg%3E') no-repeat center;
    background-size: contain;
    position: absolute;
    z-index:3;
    left: -0.5rem;
    top: 15px;
    transform: translateY(-50%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    padding-bottom: 0.3rem;  /* 数字を上に移動するためにパディングを追加 */
  }

  #section-1 .head-menu p:nth-child(1):before {
    content:"1" ;
  }
  #section-1 .head-menu p:nth-child(2):before {
    content:"2" ;
  }
  #section-1 .head-menu p:nth-child(3):before {
    content:"3" ;
  }
  @media (min-width: 768px) {
    /* 各 p の前に SVG アイコンを挿入 */
      #section-1 .head-menu p::before {
        width: 5rem;
        height: 2.4rem;
        background-size: contain;
        left: -1.8rem;
        top: 53%;
        font-size: 1.25rem;
        padding-bottom: 0.5rem;  /* 数字を上に移動するためにパディングを追加 */
      }
    }
  @media (min-width: 992px) {
  /* 各 p の前に SVG アイコンを挿入 */
    #section-1 .head-menu p::before {
      width: 5rem;
      height: 4rem;
      background-size: contain;
      left: -1.5rem;
      top: 53%;
      font-size: 2rem;
      padding-bottom: 0.9rem;  /* 数字を上に移動するためにパディングを追加 */
    }
  }
  /* ===============================
   メインイメージ
================================ */
  /* 背景画像を配置し、head-left と重なる */
  #section-1::before {
    content: "";
    position: absolute;
    right: 0px;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/hoshou/intro.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center bottom;
    z-index: 1; /* 背景をテキストの背面に配置 */
  }
  
  /* ===============================
     大画面 (≥lg) のレイアウト調整
  ================================ */
  @media (min-width: 992px) {
    #section-1 {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      position: relative;
      padding-bottom: var(--spacer);
    }
  
    #section-1 .head-left {
      flex: 1;
      /*padding: var(--spacer);*/
      position: relative;
      z-index: 2; /* テキストを背景画像の上に配置 */
    }
  
    /* 背景画像を配置し、head-left と重なる */
    #section-1::before {
      content: "";
      position: absolute;
      right: -60px;
      top: 0;
      width: 50%;
      height: 100%;
      background-position: right 20%;
        /*opacity: 0.9;*/
      z-index: 1; /* 背景をテキストの背面に配置 */
    }
  }
  


/* ===============================
   レスポンシブレイアウト調整
================================ */
@media (min-width: 768px) {
  #section-1 .title-pre {
    font-size: 1.75rem;;
  }
  
  #section-1 .title-main {
    font-size: 2.25rem;
  }
  /* head-menu 内のテキスト */
  #section-1 .head-menu p {
    font-size: 1.25rem;
  }
}
@media (min-width: 992px) {
  #section-1 .title-pre {
    font-size: 2rem;
  }
  
  #section-1 .title-main {
    font-size: 2.4rem;
  }
  /* head-menu 内のテキスト */
  #section-1 .head-menu p {
    font-size: 1.75rem;
  }
}
@media (min-width: 1400px) { 
  #section-1 .title-main {
    font-size: 3.25rem;
  }
  /* head-menu 内のテキスト */
  #section-1 .head-menu p {
    font-size: 2rem;
  }
}

/* =========================
  上部ボタン
========================= */
#top_inquiry-box a {
  border-radius: 1rem;
  box-shadow: 0px 4px 4px 0px #00000040;
  box-shadow: 0px -7px 2px 0px #00000040 inset;
  font-size: 0.85rem;
  width: 30%;
  max-width: 8.5rem;/*12rem;*/
}
#top_inquiry-box a img{
  width: 2rem;
}
@media only screen and (min-width: 992px) {
  #top_inquiry-box a {
    max-width: 20rem;
    font-size: 1.5rem;
  }
  #top_inquiry-box a img{
    width: 3rem;
  }
}
/* =========================
  こんなお悩みありませんか？
========================= */
#section-worries {
}
#section-worries h2{
  font-size: 1.75rem;
}
#section-worries .box{
  border-radius: 8px;
}
#section-worries p{
  font-size:1rem;
}

@media (min-width: 992px) {
  #section-worries h2{
    font-size: 2.75rem;
  }
  #section-worries p{
    font-size:1.25rem;
  }
}
#section-worries > p {
  position: relative;
  width: fit-content;
}
#section-worries div div div {
  box-shadow: 0px 8px 35px 0px #0000001A;
}
#section-worries img {
  max-height: 240px;  /* 画像の高さを合わせる */
}
@media only screen and (min-width: 992px) {
  #section-worries img {
    height: 240px;
  }
}



/* =========================
  様々なお悩みを解決する
  中部電力の家賃収納代行サービス
========================= */
#section-service {
  background: #E5F1FF;
}
#section-service h2{
  font-size: 1.75rem;
}
#section-service h3{
  font-size: 1.25rem;
}

@media (min-width: 768px) {
}
@media (min-width: 992px) {
  #section-service h2{
    font-size: 2.75rem;
  }
  #section-service h3{
    font-size: 2.2rem;
  }
}

/* =========================
  サービス概要
========================= */
#section-summary table, #section-summary p {
  width: 100%;
  border-collapse: collapse;
}
#section-summary h2{
  font-size: 1.75rem;
}
#section-summary th{
  width:30%;
}
#section-summary table{
  font-size: 0.85rem;
}
@media (min-width: 992px) {
  #section-summary h2{
    font-size: 2.2rem;
  }
  #section-summary table{
    font-size: 1.25rem;
  }
  #section-summary th{
    width:30%;
  }
}

#section-summary table th {
  /* thは上、下のみborderを設定する。 */
  border-top: 1px solid white;
  border-bottom: 1px solid white;
}
#section-summary table td {
  border: 1px solid var(--color-dark-blue);
  border-left: none;  /* th、tdの間のborderは設定しない */
}
@media only screen and (min-width: 992px) {
  #section-summary table, #section-summary p {
    width: 80%;
  }
}


/* =========================
  お問い合わせ/資料請求
========================= */
#section-inquiry {
  position: relative;
  overflow: hidden;
  background: url('../images/hoshou/bg_inquiry.png') no-repeat left center #E7EBF6;
  background-size: contain;
}
#section-inquiry h2{
  font-size: 1.75rem;
}
@media (min-width: 768px) {
}
@media (min-width: 992px) {
  #section-inquiry h2{
    font-size: 2.75rem;
    text-decoration:underline;
    text-underline-offset: 1rem;
    text-decoration-thickness: 2px !important;
  }
}


/* =========================
   下部のお問い合わせボタン
========================= */
.inquiry-box a {
  border-radius: 0.75rem;
  box-shadow: 0px -8px 2px 0px rgba(0, 0, 0, 0.25) inset;
  font-size: 1.25rem;
  width: 70%;
  max-width: 21.25rem;

}
@media only screen and (min-width: 992px) {
  .inquiry-box a {
    font-size: 1.75rem;
    max-width: 24rem;
  }
}
