
@charset "UTF-8";

/* about */

.headWrap{
    display: flex;
    height: auto;
    min-height: 40vh;
    background-image: url(../img/excase_head.jpg);
    background-position: center center;
    background-size: cover;
    color: #FFF;
    align-items: center;
    justify-content: center;
}

.headWrap h2{
    font-size: 3rem;
}
.limitedWidth{
    padding: 100px 0;
}





.wrapper {
  width: 100%;
  margin: 100px auto;
  overflow: visible;
}

/* --- 各セクション --- */
.content-box {
  position: relative;
  background: #eef4f3;
  margin:100px auto 60px;
  padding: 60px;
  box-sizing: border-box;
  border-radius: 8px;
  overflow: visible;
}


/* --- テキスト --- */
#excase .text {
  color: #333;
  max-width: 100%;
}

#excase .text h2 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 15px;
  display: flex;
  align-items: baseline;
  gap: 50px;
  border-bottom: 2px solid #222;
  display: inline-flex;
  padding: 0 10px 3px 0;
  text-align: left;
}

#excase .text h2 em {
    border: none;
    font-size: 2.9rem;
    padding: 0;
    margin: 0;
}

#excase .text h2 span {
  margin: 0;
  font-size: 2.5rem;
  font-weight: bold;
}

#excase .text p{
  font-size: 1.8rem;
  line-height: 2;
    margin-top: 50px;
}

/* --- 画像 --- */
.image {
  position: absolute;
  top: -100px;      
  right: 20px;     
  width: 260px;
  z-index: 2;
}

.image img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- スマホ用 --- */
@media (max-width: 750px) {
  .content-box {
    padding: 40px 20px;
  }

  .image {
        width: 180px;
        top: -60px;
        right: 5px;
  }

  #excase .text h2 {
    display: block;
    text-align: left;
    border-bottom: none;   /* ✅ PC時の下線は消す */   
  }

  /* ✅ スマホ時: spanの上にボーダーライン */
  #excase .text h2 span {
    display: block;
    margin-top: 5px;
    padding-top: 3px;
    border-bottom: none;          /* ✅ 下の線は不要 */
    width: fit-content;
    font-size: 2rem;
  }

  #excase .text {
    padding-top: 0;
  }

  #excase .text h2 em{
        font-size: 2.6rem;
        border: none;
        padding: 0;
        margin: 0;
  }

    .iron{}
    .ceramic{}
    .rosary{}
    .wood{}
    .logo{}

    #excase .text h2.iron em,
    #excase .text h2.rosary em,
    #excase .text h2.logo em {
        display: inline;
        border-bottom: 2px solid #222;
        padding-right: 10px;
    }
    
    #excase .text h2.ceramic span,
    #excase .text h2.wood span {
        border-top: 2px solid #222;   /* ✅ 上に線を付ける */
        padding-right: 10px;
    }   
    
}









/*sp*/
@media screen and (max-width: 750px) {

.headWrap{
    height: auto;
    min-height: 20vh;
}

.headWrap h2{
    font-size: 5vw;
    margin-bottom: -50px;
}    

.limitedWidth{
    padding: 60px 4%;
}

}