/* ===============================
   #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-dark-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: -3rem;
    width: 3rem;
  }
  #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)
================================ */
#section-1 .head-menu p::before  {/*アイコン設定：1つ目*/
  content: "";
  width: 2.2rem;
  height:2.2rem;
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0.7em; /* 最初の行の中央に合わせる */
  transform: translateY(-35%);  /* 垂直中央配置を復活 */
}
#section-1 .head-menu p:nth-child(1)::before  {/*アイコン設定：1つ目*/
  background: url(../images/kanri/intro_1.svg) no-repeat;
  background-size:contain;
}
#section-1 .head-menu p:nth-child(2)::before  {/*アイコン設定：2つ目*/
  background: url(../images/kanri/intro_2.svg) no-repeat;
  background-size:contain;
}
#section-1 .head-menu p:nth-child(3)::before  {/*アイコン設定：3つ目*/
  background: url(../images/kanri/intro_3.svg) no-repeat;
  background-size:contain;
}

@media (min-width: 768px) {
  #section-1 .head-menu p {
    padding-left: 2.5rem;
  }
  #section-1 .head-menu p::before {
    width: 2.75rem;
    height: 2.75rem;
  }
}
@media (min-width: 992px) {
  #section-1 .head-menu p {
    padding-left: 3.5rem;
  }
  
  #section-1 .head-menu p::before {
    width: 5rem;
    height: 5rem;
    left: -9px;
  }
}


/* ===============================
   メインイメージ
================================ */
  /* 背景画像を配置し、head-left と重なる */
  #section-1::before {
    content: "";
    position: absolute;
    right: 0px;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/kanri/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: 48%;
    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: 992px) {
  #section-2 h2{
    font-size: 2.75rem;
  }
  #section-2 h3{
    font-size: 1.5rem;
    min-height:4.8125rem;
  }
  #section-2 .btn{
    border-radius:0.65rem;
    font-size: 1.25rem;
  }
}
@media (min-width: 992px) {
  #section-3 h2{
    font-size: 2.75rem;
  }
  #section-3 h3{
    font-size: 1.25rem;
  }

}
@media (min-width: 1400px) { 
  #section-1 .title-main {
    font-size: 3.25rem;
  }
  /* head-menu 内のテキスト */
  #section-1 .head-menu p {
    font-size: 2rem;
  }
}



/* =========================
  こんなお悩みありませんか？
========================= */
#section-worries h2{
  font-size: 1.75rem;
}
#section-worries h3{
  font-size: 1rem;
}

#section-worries p{
  font-size: 0.85rem;
}
#section-worries > div > div {
  box-shadow: 0px 8px 35px 0px rgba(0, 0, 0, 0.10);
  
}
#section-worries > div > img {
  max-height: 240px;  /* 画像の高さを合わせる */
}
@media (min-width: 768px) {
}

@media (min-width: 992px) {
  #section-worries h2{
    font-size: 2.75rem;
  }
  #section-worries h3{
    font-size: 1.5rem;
    min-height:4.8125rem;
  }
  #section-worries p{
    font-size: 1.25rem;
  }
  #section-worries > div img {
    height: 240px;
  }
}


/* =========================
  様々なお悩みを解決する
  中部電力の家賃収納代行サービス
========================= */
#section-service {
  background: #E8EBF4;
}
#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: #E7EBF6;
}
#section-inquiry {
  position: relative;
  overflow: hidden;
  background: url('../images/kanri/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;
  }
}
