@charset "utf-8";
/* 千寿堂が目指す住まい */

@media screen and (min-width: 768px) {
    #S01 .contents .contentsDetail .mainimg {
        width: 90%;
        max-width: 1110px;
        margin: 0 auto 60px;
        position: relative;
    }
    #S01 .contents .contentsDetail .mainimg .main-text {
	text-align:left;
        -ms-writing-mode: tb-rl;
        writing-mode: vertical-rl;
        font-size: 22px;
        position: absolute;
        left: 0;
        top: 35%;
        transform: translateY(-40%);
        line-height: 2.0;
	padding: 5px;
	height:250px;
    }
    #S01 .contents .contentsDetail .mainimg img {
        margin: 0 0 0 auto;
        width: 75%;
        display: block;
	border-radius: 8px;
    }
        #S02 .contents .contentsDetail .two-column {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 20px;
      max-width: 1110px;
      margin: 50px auto;
      padding: 20px;
    }

        #S02 .contents .contentsDetail .two-column .image {
      flex: 0 0 30%;
    }

        #S02 .contents .contentsDetail .two-column .image img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 8px;

    }

        #S02 .contents .contentsDetail .two-column .text {
      flex: 0 0 65%;
background-color: #EFE8DC;
        padding: 1em;
        border-radius: 8px;
    }

        #S02 .contents .contentsDetail .two-column .text h3 {
      font-size: 1.4em;
      margin-bottom: 10px;
      line-height: 1em;
	padding: 0;
	margin: 0;
	text-align:left;
    }

        #S02 .contents .contentsDetail .two-column .text p {
      font-size: 1em;
      line-height: 1.6;
      color: #555;
    }
    #S03 .contents .contentsDetail {
        max-width: 1000px;
    }
}

@media screen and (max-width: 767px) {
    #S01 .contents .contentsDetail .mainimg .main-text {
        margin: -5vw auto 0;
        -ms-writing-mode: tb-rl;
        writing-mode: vertical-rl;
        font-family: 'komorebi-font';
        font-size: 5vw;
        line-height: 2;
        display: flex
;
        align-items: center;
    }
    #S01 .contents .contentsDetail .mainimg img {
        order: -1;
        display: block;
	border-radius: 8px;
    }
         #S02 .contents .contentsDetail .two-column {
        flex-direction: column;
      }

         #S02 .contents .contentsDetail .two-column .image {
        flex: 1 1 100%;
}

         #S02 .contents .contentsDetail .two-column .text {
        flex: 1 1 100%;
	background-color: #EFE8DC;
        padding: 1em;
        border-radius: 8px;
      }


}


main {
  background-image: url("/wp-content/themes/original-child/assets/img/bg.jpg");
  background-repeat: no-repeat;
  background-size: auto;
}
section {
  padding: 50px 0 0;
}
section:nth-last-of-type(1) {
  padding: 50px 0 100px;
}
#ideal h2 {
  text-align: left;
  padding: 0 0 20px;
}
#ideal p {
  text-align: left;
}
#S02 p.name {
  text-align: right;
  padding: 50px 0 0;
}