@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
  main.main, div.sidebar {
    padding: 0 16px !important;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* スライダー */
/* スライダー全体を中央寄せ＆レスポンシブ対応 */
.metaslider-wrapper {
  text-align: center;
}

/* スライダー本体の幅を制限して、レスポンシブ対応 */
.metaslider-wrapper .metaslider {
  display: inline-block;
  max-width: 100%;
  width: 100%;
  height: auto;
}

/* モバイル対応：画面幅が768px以下のとき */
@media screen and (max-width: 768px) {
  .metaslider-wrapper .metaslider {
    max-height: 250px;         /* 高さ制限（必要に応じて調整） */
    width: 100%;               /* 幅いっぱい */
    object-fit: cover;         /* 縦横比維持しつつフィット */
  }

  .metaslider-wrapper img {
    width: 100%;
    height: auto;
    max-height: 250px;         /* モバイルでは高さ制限を付ける */
    object-fit: cover;
  }
}

/* トップページ */
.greeting-section,
.description-section {
  text-align: center;
  margin: 2em 0;
  font-size: 1.1em;
}

.three-images,
.two-images {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  /* flex-wrap: wrap; */
  margin: 2em 0;
}

.three-images div,
.two-images div {
  flex: 1;
  text-align: center;
}

.three-images img {
  width: 40%;
  height: auto;
  border-radius: 8px;
}

.two-images img {
  width: 60%;
  height: auto;
  border-radius: 8px;
}

.full-image {
  text-align: center;
}

.full-image img {
  width: 85%;
  height: auto;
  margin: 0.5em 0;
  border-radius: 8px;
}

@media screen and (max-width: 768px) {
  .full-image img {
    width: 100%;
  }
}

.profile2-section {
  display: flex;
  align-items: flex-start;
  gap: 2em;
  flex-wrap: wrap;
  margin: 3em 0;
}

.profile2-image img {
  height: auto;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile2-text {
  flex: 1;
}

@media screen and (max-width: 768px) {
  .profile2-image {
    display: none;
  }
}

.profile1-section {
  display: flex;
  align-items: flex-start;
  gap: 2em;
  flex-wrap: wrap;
  margin: 3em 0;
}

.profile1-image img {
  height: auto;
  border-radius: 50%;
}

.profile1-text {
  flex: 1;
}

@media (max-width: 768px) {
  .three-images,
  .two-images {
    flex-direction: row; /* 横並び */
    gap: 1em; /* 要素間の隙間 */
  }

  .three-images div,
  .two-images div {
    flex: 1 1 auto; /* 均等に幅を割り当て */
    max-width: 33%; /* 3つ並びの場合。2つ並びなら50%など */
  }

  /* 画像自体の幅を調整 */
  .three-images img {
    width: 90%; /* 親の幅いっぱい */
    height: auto;
    border-radius: 8px;
  }
  .two-images img {
    width: 100%; /* 親の幅いっぱい */
    height: auto;
    border-radius: 8px;
  }
}

/* ヘッダーモバイルメニュー */
.menu-close-button {
    text-align: right !important;
    margin-right: 5px !important;
}

@media screen and (max-width: 480px) {
    .menu-content {
        max-width: 50% !important;
    }
}

/* トップページ仮 */
.index-top-section {
  display: flex;
  justify-content: space-between;
  gap: 2em;
  flex-wrap: wrap;
  margin: 2em 0;
}

.news-box {
  flex: 1;
  min-width: 280px;
}

.news-title {
  font-size: 1.2em;
  margin-bottom: 1em;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  margin-bottom: 0.5em;
  font-size: 0.7em;
}

.news-list .date {
  color: #e46e8c;
  font-weight: bold;
  margin-right: 0.5em;
}

.news-list .icon {
  color: #e46e8c;
  font-weight: bold;
  margin-right: 0.5em;
}

.top-images {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 1em;
  min-width: 200px;
}

.top-images img {
  width: 48%;
  height: auto;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
  .index-top-section {
    flex-direction: column;
    align-items: center;
  }

  .top-images {
    justify-content: center;
  }

  .top-images img {
    width: 40%;
  }
}

.news-title-img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1em;
}

/* What's new 横の画像調整 */
.top-images {
  flex-direction: row; /* 縦に並べる */
  align-items: center;    /* 中央揃え */
  gap: 1em;
}

.top-images img {
  width: 200px;     /* 適度なサイズに調整。お好みで 80px 〜 120px 程度に調整可 */
  height: auto;
}

.news-box p {
  display: none;
}

.news-box {
  max-width: 452px;
  background-color: #fff;
}

@media screen and (min-width: 769px) {
  .three-images {
    width: 80%;
    gap: 5em;
    margin: 2em auto;
    display: flex;
    justify-content: center;
  }

  .three-images div {
    flex: 0 0 auto;
    text-align: center;
  }

  .three-images img {
    width: 170px;
    height: auto;
  }
}

/* プロフィール */
.profile1-section {
  display: flex;
  align-items: flex-start;
  gap: 2em;
  margin: 2em 0;
}

.profile1-image {
  flex: 0 0 auto;
  text-align: center;
}

.profile1-image img {
  width: 150px;
  height: auto;
  border-radius: 50%;
}

.profile1-name {
  margin-top: 0.5em;
  font-weight: bold;
}

.profile1-text {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.profile1-career,
.profile1-cert {
  flex: 1;
  font-size: 14px;
  line-height: 1.8;
}

@media screen and (min-width: 769px) {
  .profile1-cert {
    border-left: solid #bbd85e 3px;
    margin: 0;
    padding: 0 0 0 5px;
  }

  .profile1-career {
    margin-right: 10px;
  }
}

@media screen and (max-width: 768px) {
  .profile1-cert {
    border-top: solid #bbd85e 3px;
    margin: 0;
    padding: 15px 0 0 0;
  }
}

@media screen and (max-width: 768px) {
  .profile1-section {
    flex-direction: column;
  }

  .profile1-text {
    flex-direction: column;
  }

  .profile1-image {
    text-align: center;
  }
}

.profile1-section {
  width: 100%;
}

.profile1-name {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 1em;
}

.profile1-content {
  display: flex;
  gap: 2em;
  align-items: flex-start;
}

.profile1-image img {
  max-width: 200px;
  height: auto;
}

.profile1-text {
  flex: 1;
}

@media screen and (min-width: 769px) {
  .profile1-section {
    display: flex;
    gap: 2em;
    align-items: flex-start;
  }
}

@media screen and (max-width: 768px) {
  .profile1-section {
    display: flex;
    gap: 1em;
    align-items: center;
  }
}

.profile1-image img {
  max-width: 200px;
  height: auto;
}

.profile1-right {
  flex: 1;
}

.profile1-name {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 1em;
}
