@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/* TOPページ：Cocoonのラッパー幅・floatの影響を外して画面中央基準にする */
body.page-id-263 #container,
body.page-id-263 #content,
body.page-id-263 #content-in,
body.page-id-263 #main,
body.page-id-263 article.article,
body.page-id-263 .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
  box-sizing: border-box !important;
}

/* TOP内の固定幅ブロックは必ずビューポート中央へ */
body.page-id-263 .jma-featured-auto,
body.page-id-263 .jma-news-intro,
body.page-id-263 .jma-brewing,
body.page-id-263 .jma-news-bottom-info,
body.page-id-263 .jma-stories-section > .wp-block-heading {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* TOP下部：上段の jma-stories-section と同じ幅・余白基準に統一 */
html body.page-id-263 .jma-news-bottom-info {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: visible !important;
}

html body.page-id-263 .jma-news-bottom-info__column {
  display: block !important;
  float: none !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 70px 0 78px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

html body.page-id-263 .jma-news-bottom-info__column:first-child {
  background: #fff8f3 !important;
}

html body.page-id-263 .jma-news-bottom-info__column + .jma-news-bottom-info__column {
  margin-top: 0 !important;
  background: #e9f7f3 !important;
  padding-top: 76px !important;
  padding-bottom: 86px !important;
}

html body.page-id-263 .jma-news-bottom-info__column > h2 {
  width: min(1520px, calc(100% - 80px)) !important;
  max-width: 1520px !important;
  margin: 0 auto 38px !important;
  padding: 0 !important;
  text-align: center !important;
  color: #006241 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  letter-spacing: 0.08em !important;
}

/* 横カードの実体は .swiper-wrapper 配下。全カテゴリーで同一寸法に統一する。 */
html body.page-id-263 .jma-brewing {
  width: min(1520px, calc(100% - 64px)) !important;
  max-width: 1520px !important;
  margin: 0 auto !important;
  padding: 8px 8px 36px !important;
  display: block !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  box-sizing: border-box !important;
}

html body.page-id-263 .jma-brewing .swiper-wrapper {
  display: flex !important;
  align-items: stretch !important;
  gap: 20px !important;
  width: max-content !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

html body.page-id-263 .jma-brewing .swiper-slide,
html body.page-id-263 .jma-brewing .new-entry-card-link {
  flex: 0 0 220px !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

@media screen and (max-width: 1023px) {
  html body.page-id-263 .jma-brewing .swiper-slide,
  html body.page-id-263 .jma-brewing .new-entry-card-link {
    flex-basis: 190px !important;
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
  }
}

@media screen and (max-width: 768px) {
  html body.page-id-263 .jma-brewing {
    width: calc(100% - 24px) !important;
    padding: 6px 6px 14px !important;
  }

  html body.page-id-263 .jma-brewing .swiper-wrapper {
    gap: 16px !important;
  }

  html body.page-id-263 .jma-brewing .swiper-slide,
  html body.page-id-263 .jma-brewing .new-entry-card-link {
    flex-basis: 168px !important;
    width: 168px !important;
    min-width: 168px !important;
    max-width: 168px !important;
  }

  /* スマホ：重要なお知らせ / 国土交通省・法規制 の下余白を適正化 */
  html body.page-id-263 .jma-news-bottom-info__column {
    padding-top: 42px !important;
    padding-bottom: 32px !important;
  }

  html body.page-id-263 .jma-news-bottom-info__column + .jma-news-bottom-info__column {
    padding-top: 42px !important;
    padding-bottom: 36px !important;
  }

  html body.page-id-263 .jma-news-bottom-info__column > h2 {
    width: calc(100% - 36px) !important;
    margin-bottom: 24px !important;
  }
}

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

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

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