@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:350px;
    }
    #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;
    }

        #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;
      }


}


/* タイトル */
.sectionTitle {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #446B54;
  border-bottom: 2px solid #d0e4d0;
  padding-bottom: 0.5rem;
}

/* メイン画像・セクション画像 */
.mainVisual, .sectionImage {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
}

/* 各セクションの文字 */
.greetingText, .profileText {
  margin-top: 1rem;
}

/* 引用ブロック */
blockquote {
  background-color: #f9f9f9;
  padding: 1rem 1.5rem;
  border-left: 5px solid #7BA26D;
  font-style: italic;
  margin: 2rem 0;
  font-size: 1.1rem;
  text-align:left;
}

h3 {
  margin: 2rem 0;
  font-size: 1.1rem;
  text-align:left;
}

/* 強調枠 */
.highlightBox {
  background-color: #f1f8f4;
  border-left: 5px solid #A2C4A6;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  margin: 1.5rem 0;
  font-weight: bold;
}

/* 名前・肩書き */
.name {
  text-align: center;
  margin-top: 2rem;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.5;
}
.name img {
  width: 150px;
  height: auto;
  border-radius: 10%;
  margin-bottom: 1rem;
}

#greeting .n-text {
  text-align: center;
}


/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .sectionTitle {
    font-size: 1.5rem;
  }
  .contents {
    padding: 1.5rem 1rem;
    font-size: 0.95rem;
  }
  blockquote, .highlightBox {
    font-size: 1rem;
    padding: 1rem;
    line-height: 1.5rem;
  }
#greeting .n-text {
  text-align: left;
}
h3 {
  margin: 0;
}

}

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;
}
#greeting p {
  text-align: left;
}
#S03 p.name {
  text-align: right;
  padding: 50px 0 0;
}
#S03 p img {
  width: 300px;
}

.author-box {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #EFE8DC;
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  margin: 2em auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.author-photo img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #ccc;
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 5px;
  color: #333;
}

.author-bio {
  color: #666;
  font-size: 0.95em;
  line-height: 1.5;
}

