@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://web.osslicense.jp/
Author: Kanae Matsuki
Author URI: https://ai.osslicense.jp/
Template:   cocoon-master
Version:    1.1.3
*/

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

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/

/* アクセス・料金セクションのカスタマイズ */
.global-custom-header__info iframe {
  height: 200px !important; /* 現在の高さ（通常400px）の半分に近い値に指定、必要に応じて調整してください */
  max-height: 50vh;
}

.global-custom-header__info table {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  border-left: none;
  border-right: none;
}

.global-custom-header__info table th,
.global-custom-header__info table td {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  border-left: none;
  border-right: none;
  padding: 10px;
}

.global-custom-header__info .wp-block-button,
.global-custom-header__info .button,
.global-custom-header__info a.btn,
.global-custom-header__info .wp-block-button__link {
  width: 80% !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
  text-align: center;
}
/* What's New Section Customization */
.front-news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列のグリッドにする */
  gap: 20px;
  margin-top: 20px;
}

.front-news-item {
  display: flex;
  flex-direction: column; /* カード内は縦積みにする */
  align-items: stretch;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.front-news-thumb {
  width: 100%;
  margin-bottom: 15px; /* サムネイルの下に余白 */
}

.front-news-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  object-fit: contain; /* 画像全体が収まるように変更 */
  aspect-ratio: 16/9;
  background-color: #f5f5f5; /* 余白ができた場合の背景色を追加 */
}

.front-news-content {
  flex-grow: 1;
  text-align: left; /* 親要素を左寄せに */
}

/* 子要素にも明示的に左寄せを指定 */
.front-news-content h3,
.front-news-content .front-news-meta,
.front-news-content .front-news-excerpt,
.front-news-content p {
  text-align: left;
}

.front-news-meta {
  font-size: 0.85em;
  color: #666;
  margin-bottom: 5px;
}

.front-news-title {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  line-height: 1.4;
}

.front-news-title a {
  text-decoration: none;
  color: #333;
}

.front-news-title a:hover {
  text-decoration: underline;
}

.front-news-excerpt {
  font-size: 0.95em;
  color: #555;
  line-height: 1.5;
}

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

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
  .front-news-list {
    grid-template-columns: 1fr; /* スマホやタブレットでは1列（縦並び）にする */
  }
}

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