@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){
  /*必要ならばここにコードを書く*/
}

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

/* 固定ページと投稿ページのタイトルを中央寄せ */
.page .entry-title,
.single .entry-title {
  text-align: center;
}

/* 固定ページと投稿ページの右上の日付を非表示 */
.page .date-tags,
.single .date-tags {
  display: none !important;
}

/* 固定ページと投稿ページの「z-architect」リンクを非表示 */
.page .article-footer.entry-footer,
.single .article-footer.entry-footer {
    display: none !important;
}

/* 投稿ページのカテゴリを非表示 */
.single .cat-links {
  display: none !important;
}

/* 固定ページと投稿ページ本文幅とスライダー幅を統一 (PC 80% / モバイル 90%) */
.page .entry-content,
.page .wrap,
.single .entry-content,
.single .wrap {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

@media screen and (max-width: 1024px) {
  .page .entry-content,
  .page .wrap,
  .single .entry-content,
  .single .wrap {
    width: 100%;
  }
}

/* 画像キャプションを中央寄せ */
.wp-block-image figcaption {
    text-align: center;
}

/* スライダー（トップページ）を本文幅に揃える */
.home .slider,
.home .wp-block-cover,
.home .wp-block-group.alignfull,
.home .wp-block-group {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 60px;
  box-sizing: border-box;
  overflow: hidden;
}

/* ギャラリー */
.gallery-block {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.gallery-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Access 見出し（中央＋左右ライン） */
.access-heading {
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  position: relative;
  margin: 60px auto 28px;
  padding-bottom: 8px;
  color: #333;
}
.access-heading::before,
.access-heading::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 40%;
  top: 50%;
  background-color: #ccc;
}
.access-heading::before { left: -45%; }
.access-heading::after  { right: -45%; }

/* Access セクション全体（PC時） */
.access-section {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 50px;
  text-align: left;
}

/* Access テーブル（PC時） */
.access-section .access-table {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-collapse: collapse;
  background-color: #ffffff;
  border-top: solid 1px #666666;
  border-bottom: solid 1px #666666;
  text-align: left;
}

/* テーブル内セル：上下罫線のみ、背景白、パディング */
.access-section .access-table td {
  border-top: 1px solid #cccccc;
  border-bottom: 1px solid #cccccc;
  border-left: none;
  border-right: none;
  padding: 10px 8px;
  background-color: #ffffff;
  vertical-align: middle;
}

/* 列幅 40% / 60%（PC 用） */
.access-section .access-table tr td:first-child {
  width: 40%;
}
.access-section .access-table tr td:last-child {
  width: 60%;
}

/* 1行目（会社名）中央寄せ・ボールド・罫線なし（上部） */
.access-section .access-table tr:first-child td {
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  padding-top: 20px;
  padding-bottom: 15px;
  border-top: none;
}

/* Map（PC時） */
.access-section .access-map {
  width: 100%;
  max-width: 1200px;
  margin: 30px auto 0;
  border: 2px solid #cccccc;
  border-radius: 8px;
  overflow: hidden;
}
.access-section .access-map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* ------------------------
   スマホ（縦積み）対応
---------------------------------------- */
@media screen and (max-width: 768px) {

  /* 本文・ラッパーをほぼフル幅に */
  #content-in,
  .page .entry-content,
  .page .wrap,
  .home .slider,
  .home .wp-block-cover,
  .home .wp-block-group.alignfull,
  .home .wp-block-group,
  .gallery-block,
  .access-section,
  .access-section .access-map,
  .access-section .access-table {
    width: 98% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 1% !important;
    box-sizing: border-box;
  }

  /* テーブル縦積み化 */
  .access-section figure.wp-block-table,
  .access-section .access-table {
    table-layout: auto !important;
  }
  .access-section .access-table tbody tr {
    display: block;
    width: 100%;
    margin-bottom: 6px;
  }
  .access-section .access-table td {
    display: block;
    width: 100% !important;
    text-align: left;
    font-size: 14px;
    padding-left: 0;
    padding-right: 0;
    border-top: none;
    border-bottom: 1px solid #cccccc;
}
  .access-section .access-table tr:first-child td {
    text-align: center;
  }

  /* スライダー内部調整 */
  .access-section .access-map iframe {
    height: 300px;
  }
  .gallery-block {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

/* 最後に余白等の微調整（必要なら上書き可） */
.home .slider { margin-top: 30px; margin-bottom: 40px; }

/* ============================================================
   Smart Slider 3 の幅を他のコンテンツと統一
   ============================================================ */

/* トップページの Smart Slider 3 を全幅表示 */
body.home .ss3-force-full-width {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important; /* 親幅の最大を解除 */
    margin: 0 auto !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    box-sizing: border-box;
}

/* 投稿ページ専用スライダー横幅統一 */
body.single ss3-force-full-width {
  display: block !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  transform: none !important;
  width: 100% !important;
  left: auto !important;
  right: auto !important;
}

/* スライダー内部のラッパーを親幅にフィット */
/* スライダー内部のラッパーも全幅 */
body.home .ss3-force-full-width > div,
body.home .n2-section-smartslider,
body.home .n2-ss-slider,
body.home .n2-ss-slider-wrapper-inside {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    transform: none !important;
}


/* スライド画像を横幅100%でフィットさせる */
body.home .n2-ss-slide-background-image img {
  width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}

/* スマホ幅でもフル幅 */
@media screen and (max-width: 768px) {
    body.home .ss3-force-full-width,
    body.home .ss3-force-full-width > div,
    body.home .n2-section-smartslider,
    body.home .n2-ss-slider,
    body.home .n2-ss-slider-wrapper-inside {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* =========================================
   コンテンツ全体と本文領域の背景統一
========================================= */
#content.content.cf,
#main.main {
  background-color: #ffffff;
}

/* 横幅を整えてセンタリング */
#content-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* スライダー（Smart Slider）も含めて中央寄せに */
.n2-ss-slider {
  margin: 0 auto !important;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* 背景の段差・色ムラをなくす */
body,
#content,
#content-in,
#main {
  background-color: #ffffff;
}

/* （必要に応じて）外枠の影や余白を無効化 */
#content.content.cf {
  box-shadow: none;
  border: none;
}

/* ===============================
   Contact Form 7 入力フォーム調整
   =============================== */

/* テキスト入力欄・メール・電話・テキストエリア */
.wpcf7 form input[type="text"],
.wpcf7 form input[type="email"],
.wpcf7 form input[type="tel"],
.wpcf7 form textarea {
  width: 100% !important;
  max-width: 100% !important;
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  padding: 10px !important;
  font-size: 16px !important;
  box-sizing: border-box !important;
  background-color: #fff !important;
  color: #333 !important;
  margin-bottom: 0 !important;
}

/* フォーカス時の見た目 */
.wpcf7 form input[type="text"]:focus,
.wpcf7 form input[type="email"]:focus,
.wpcf7 form input[type="tel"]:focus,
.wpcf7 form textarea:focus {
  outline: none !important;
  border-color: #202F55 !important;
  box-shadow: 0 0 4px rgba(32, 47, 85, 0.3) !important;
}

/* 送信ボタン */
.wpcf7 form input[type="submit"],
.wpcf7 form .wpcf7-submit {
  background-color: #202F55 !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 32px !important;
  font-size: 16px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease !important;
}
.wpcf7 form input[type="submit"]:hover,
.wpcf7 form .wpcf7-submit:hover {
  background-color: #405D9A !important;
}

/* 必須エラーメッセージ */
.wpcf7 form .required {
  color: red;
  font-weight: bold;
  margin-left: 3px;
}
.wpcf7 form .wpcf7-not-valid-tip {
  color: #d9534f !important;
  font-size: 14px !important;
  font-weight: bold !important;
  margin-top: 4px !important;
}

/* フォーム全体の余白調整 */
.wpcf7 form {
  margin: 0 auto !important;
  max-width: 800px !important;
}

.wp-block-preformatted {
    text-align: center;       /* 文字中央寄せ */
    /* color: #001f5b;           ネイビー文字 */
    background: none !important;  /* 背景なし */
    /* border: none !important;      枠線なし */
}

/* ==========================================================
   作品集 一覧ページ（3列サムネイル + タイトルのみ）
   ========================================================== */
.list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin: 40px auto;
  max-width: 1100px;
  padding: 0 20px;
}

/* 各カードの基本デザイン */
.entry-card-wrap {
  display: block;
  border: none;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entry-card-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* サムネイル画像 */
.entry-card-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.entry-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* タイトルのデザイン */
.entry-card-title {
  display: block !important;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin: 15px 10px;
  line-height: 1.4;
}

/* 不要なメタ情報などを非表示 */
.entry-card-snippet,
.admin-pv,
.entry-card-meta,
.entry-card-categorys,
.cat-label {
  display: none !important;
}

/* レスポンシブ対応 */
@media (max-width: 900px) {
  .list {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* 投稿ページ上部のアイキャッチ画像を非表示 */
.single .eye-catch-wrap {
  display: none !important;
}

/* ---------- 投稿ページ：前/次ナビを確実に横並び1段にする ---------- */
#pager-post-navi,
.pager-post-navi {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 60px !important;
  margin: 40px auto;
  text-align: center;
  flex-wrap: nowrap !important; /* 折り返さない */
  width: 100% !important;
  max-width: 800px !important;
  box-sizing: border-box !important;
}

/* 親 a 要素（prev/next）を横並びの子にする */
#pager-post-navi > a,
.pager-post-navi > a,
.pager-post-navi .a-wrap,
.pager-post-navi .prev-post,
.pager-post-navi .next-post {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  color: inherit !important;
  box-sizing: border-box !important;
  width: calc(50% - 8px) !important; /* 左右ほぼ半々 */
  min-width: 0 !important; /* テキスト省略処理のため */
  float: none !important; /* float が邪魔している場合に備え */
}

/* サムネ（thumb）は固定幅、テキスト部分は伸びる */
.pager-post-navi .prev-post-thumb,
.pager-post-navi .next-post-thumb,
#pager-post-navi .prev-post-thumb,
#pager-post-navi .next-post-thumb {
  width: 120px !important;
  height: auto !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

/* タイトルは横に並んで収まるようにし、はみ出したら省略 */
.pager-post-navi .prev-post-title,
.pager-post-navi .next-post-title,
#pager-post-navi .prev-post-title,
#pager-post-navi .next-post-title {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
}

/* アイコン位置調整（必要なら） */
.pager-post-navi .iconfont,
#pager-post-navi .iconfont {
  margin: 0 6px 0 0 !important;
}

/* モバイル幅では縦並びに戻す（必要ならコメントアウト） */
@media (max-width: 600px) {
  #pager-post-navi,
  .pager-post-navi {
    flex-direction: column !important;
    gap: 12px !important;
  }
  #pager-post-navi > a,
  .pager-post-navi > a {
    width: 100% !important;
    justify-content: flex-start !important;
  }
}

/* 前・次ボタンの全体スタイル微調整 */
#pager-post-navi > a {
  border-radius: 6px;
  padding: 10px 15px;
  transition: background 0.3s ease;
}

/* サムネをもう少し小さくする場合 */
.pager-post-navi .prev-post-thumb img,
.pager-post-navi .next-post-thumb img {
  width: 100px;
  height: auto;
  border-radius: 4px;
}

/* ---------- 投稿ページ：前/次ナビ 全体 ---------- */
#pager-post-navi,
.pager-post-navi {
  display: flex !important;
  justify-content: center !important; /* 全体中央揃え */
  align-items: center !important;
  gap: 60px !important;
  margin: 40px auto;
  text-align: center;
  flex-wrap: nowrap !important;
  width: 100% !important;
  max-width: 800px !important; /* 横幅制限 */
  box-sizing: border-box !important;
}

/* ---------- 各リンク（前へ・次へ） ---------- */
#pager-post-navi > a,
.pager-post-navi > a,
.pager-post-navi .prev-post,
.pager-post-navi .next-post {
  display: flex !important;
  flex-direction: row !important; /* 横並びを維持 */
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  color: inherit !important;
  box-sizing: border-box !important;
  width: calc(50% - 8px) !important;
  float: none !important;
}

/* ---------- 次へボタンだけ順番を変える ---------- */
.pager-post-navi .next-post,
#pager-post-navi .next-post {
  flex-direction: row-reverse !important; /* タイトル・サムネ・アイコン */
}

/* ---------- サムネ（中央寄せ＆サイズ固定） ---------- */
.pager-post-navi .prev-post-thumb,
.pager-post-navi .next-post-thumb {
  width: 100px !important;
  height: auto !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* ---------- タイトル（中央寄せ・折り返し許可） ---------- */
.pager-post-navi .prev-post-title,
.pager-post-navi .next-post-title {
  display: block !important;
  text-align: center !important;
  white-space: nowrap !important; /* 折り返さない */
  font-size: 14px !important;
  line-height: 1.3 !important;
  max-width: 120px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* ---------- アイコン位置調整 ---------- */
.pager-post-navi .iconfont {
  flex-shrink: 0 !important;
  font-size: 14px !important;
  margin: 0 6px 0 0 !important;
}

/* ---------- モバイルでは縦並びに ---------- */
@media (max-width: 600px) {
  #pager-post-navi,
  .pager-post-navi {
    flex-direction: column !important;
    gap: 12px !important;
  }
  #pager-post-navi > a,
  .pager-post-navi > a {
    width: 100% !important;
    justify-content: flex-start !important;
  }
}

.entry-card-wrap {
  display: flex !important;
  flex-direction: column !important; /* 縦並び */
}

.entry-card-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0; /* 高さ固定 */
}

.entry-card-content {
  width: 100%;
  display: block;
}

.entry-card-title {
  display: block !important;
  width: 100%;
  text-align: center;
  margin-top: 12px;
}

.entry-card {
  display: block !important; /* 横並び回避 */
}

.entry-card-thumb {
  width: 100% !important;
  height: auto !important; /* 高さ固定を外すと回避できる */
}

.entry-card-content {
  display: block !important; /* 縦並び */
  width: 100% !important;
}

.entry-card-title {
  display: block !important;
  text-align: center;
  margin-top: 10px;
  z-index: 10; /* 万一重なった場合の最前面指定 */
  position: relative; 
}

.entry-card-title {
  display: block !important;
  position: absolute !important; /* サムネ上に重ねる */
  top: 0 !important;             /* サムネの上端 */
  left: 0 !important;
  width: 100% !important;
  text-align: center !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: red !important;         /* 見やすい色に変更 */
  z-index: 9999 !important;      /* 最前面に */
  background-color: rgba(255,255,255,0.7) !important; /* 透過背景で確認 */
}

/* ==========================================
   作品集カード：サムネ下にタイトル表示
========================================== */

/* カード全体 */
.entry-card-wrap {
  display: block;
  overflow: visible;       /* はみ出しても隠さない */
  text-decoration: none;   /* リンク装飾解除 */
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entry-card-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* サムネ */
.entry-card-thumb {
  width: 100%;
  height: auto;             /* 画像比率に合わせる */
  overflow: hidden;
  position: relative;
}

.entry-card-thumb img {
  width: 100%;
  height: auto;             /* 高さ自動調整 */
  display: block;
  object-fit: cover;
}

/* タイトルをサムネ下に表示 */
.entry-card-content {
  padding: 10px 15px;
}

.entry-card-title {
  display: block !important;
  position: relative !important;  /* 絶対配置ではなく通常フロー */
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  text-align: center !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: #333 !important;
  margin: 10px 0 15px 0 !important; /* サムネと間隔 */
  z-index: 10 !important;
  background-color: transparent !important;
}

/* メタ情報は非表示（必要に応じて） */
.entry-card-snippet,
.admin-pv,
.entry-card-meta,
.entry-card-categorys,
.cat-label {
  display: none !important;
}

/* レスポンシブ対応 */
@media (max-width: 900px) {
  .list {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* カード全体リセット */
.entry-card-wrap {
  display: flex !important;
  flex-direction: column !important; /* 縦並び */
  width: 100% !important;
  max-width: 320px !important;       /* カード幅固定 */
  margin: 0 auto !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

/* サムネ */
.entry-card-thumb {
  width: 100% !important;
  height: auto !important;
  overflow: hidden !important;
  position: relative !important;
}

.entry-card-thumb img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: cover !important;
}

/* タイトルを完全リセット */
.entry-card-content,
.entry-card-title {
  display: block !important;
  position: static !important; /* 絶対配置を解除 */
  width: 100% !important;
  margin: 8px 0 12px 0 !important;
  text-align: center !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: #333 !important;
  background: transparent !important;
  z-index: auto !important;
}

/* ---------------------------
   作品集カード（レスポンシブ）
--------------------------- */

/* グリッドリスト */
.list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px auto;
  max-width: 1100px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* カード全体 */
.entry-card-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entry-card-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* サムネ固定縦横比 */
.entry-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9; /* 縦横比16:9に固定 */
  overflow: hidden;
}

.entry-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* タイトルをサムネ下に配置 */
.entry-card-content {
  padding: 10px 12px;
  text-align: center;
}

.entry-card-title {
  margin: 5px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  text-align: center;
}

/* 不要な情報を非表示 */
.entry-card-snippet,
.admin-pv,
.entry-card-meta,
.entry-card-categorys,
.cat-label {
  display: none !important;
}

/* レスポンシブ */
@media (max-width: 900px) {
  .list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 600px) {
  .list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.entry-card-content {
  padding: 5px 12px 5px 12px; /* 上 5px / 右 12px / 下 5px / 左 12px */
  text-align: center;
}

.entry-card-title {
  margin: 5px 0 5px 0; /* 上 5px / 下 5px */
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.entry-card-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 上詰め */
  padding-bottom: 0;           /* 下の余白をゼロに */
}

.entry-card-content {
  padding: 0 10px 0 10px;      /* 上下paddingをゼロに */
  text-align: center;
}

.entry-card-title {
  margin: 5px 0 0 0;           /* 上5px 下0 */
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.entry-card-wrap {
  border: none !important;        /* 枠線を消す */
  box-shadow: none !important;    /* 影を消す */
  background: transparent !important; /* 背景も透明にしたい場合 */
}

/* Gutenberg 全幅ブロックをブラウザ幅いっぱいに */
.wp-block-cover.alignfull,
.wp-block-group.alignfull,
.wp-block-image.alignfull {
  width: 100vw !important;           /* ブラウザ横幅いっぱい */
  max-width: 100vw !important;       /* 最大幅制限を解除 */
  margin-left: calc(-50vw + 50%) !important;  /* 中央寄せ補正 */
  margin-right: calc(-50vw + 50%) !important;
  box-sizing: border-box;
}

/* 必要に応じてページ本文も96%に */
.page .entry-content {
  width: 96% !important;
  max-width: 96% !important;
  margin: 0 auto !important;
  box-sizing: border-box;
}

/* トップページのカラムブロックだけ幅96%に */
.home .wp-block-columns.alignfull {
    width: 96vw; /* 画面幅の96% */
    max-width: 96vw;
    margin-left: calc(-48vw + 50%); /* 96%に合わせて微調整 */
}

/* 成形済みテキストブロックの外枠線と背景を消す */
.wp-block-preformatted {
    border: none !important;       /* 枠線を消す */
    background: none !important;   /* 背景色を消す */
    box-shadow: none !important;   /* 影があれば消す */
    padding: 0 !important;         /* 余白もリセットしたい場合 */
    margin: 0 !important;          /* 外側の余白もリセット */
    white-space: pre-wrap !important; /* 折り返し有効にする */
}

/* Access Map をブラウザ幅いっぱいに */
.access-section .access-map {
  width: 100vw; /* ビューポート幅いっぱい */
  max-width: 100vw;
  margin-left: calc(-50vw + 50%); /* 中央寄せ補正 */
  margin-right: calc(-50vw + 50%);
  padding: 0;
  box-sizing: border-box;
　border: none;   /* 枠線消す場合 */
  border-radius: 0; /* 角丸リセット */
}

.access-section .access-map iframe {
  width: 100%;                        /* 親に合わせて横幅100% */
  height: 450px;                       /* 高さは必要に応じて調整 */
  display: block;
  border: 0;
}

.access-map {
  position: relative;
  width: 100vw;                   /* ビューポート全幅 */
  max-width: 100vw;
  margin-left: calc(-50vw + 50%); /* 中央寄せ */
}

.access-map iframe {
  width: 100%;
  height: 450px;   /* 必要に応じて調整 */
  border: 0;
  display: block;
}

/* -------------------------------
   作品集一覧（サムネ＋タイトル）
------------------------------- */
.list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PCは3列 */
  gap: 20px; /* カード間の余白 */
  width: 100%; /* 全幅 */
  max-width: 100%; /* 横スクロール防止 */
  margin: 0 auto; /* 中央寄せ */
  padding: 0;
  box-sizing: border-box;
}

.entry-card-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
  overflow: hidden;
  box-sizing: border-box;
}

.entry-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9; /* 16:9比率 */
  overflow: hidden;
}

.entry-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* サムネをカードいっぱいにフィット */
  display: block;
}

.entry-card-content {
  padding: 5px 0; /* タイトル上下余白 */
  text-align: center;
}

.entry-card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  background: transparent;
}

/* -------------------------------
   スマホ対応（1列表示）
------------------------------- */
@media screen and (max-width: 768px) {
  .list {
    grid-template-columns: 1fr; /* 1列表示 */
    gap: 15px;
  }

  .entry-card-thumb {
    aspect-ratio: 16 / 9; /* 高さ維持 */
  }
}

@media screen and (max-width: 768px){
  /* ハンバーガー全体の位置調整 */
  .slicknav_menu {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    width: auto !important;  /* 親幅はアイコンサイズでOK */
    z-index: 99999 !important;
  }

  /* MENU 文字を消す */
  .slicknav_menutxt {
    display: none !important;
  }

  /* ハンバーガーボタン背景・枠を完全削除 */
  .slicknav_btn,
  .slicknav_menu,
  .slicknav_icon {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* ハンバーガーアイコンカラー */
  .slicknav_icon-bar {
    background-color: #ffffff !important;  /* 白 */
  }

  /* ハンバーガーアイコンのバー間の間隔調整 */
  .slicknav_icon-bar {
    margin: 4px 0 !important;   /* 数字を変更すると縦幅変わる：例 4px, 8px など */
  }

  /* 必要であればアイコン全体を拡大 */
  .slicknav_icon {
    transform: scale(1.4) !important;   /* 大きさ調整用：1.0〜1.8などで調整 */
  }

  /* ハンバーガー全体の位置 */
  .slicknav_menu {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;  /* 左上に固定 */
    right: auto !important;
    z-index: 99999 !important;
  }

  /* メニュー開いたとき */
  .slicknav_nav {
    position: fixed !important;     /* body基準で配置 */
    top: 50px !important;           /* アイコン下に表示 */
    left: 0 !important;             /* 左端に固定 */
    width: 40vw !important;         /* 画面幅の40% */
    max-width: 250px !important;    /* 必要に応じて最大幅 */
    background-color: rgba(32, 47, 85, 0.6) !important; /* 背景 */
    z-index: 99998 !important;
  }

  /* メニュー内のリンクが幅いっぱいになるよう調整 */
  .slicknav_nav li a {
    display: block !important;
    width: 100% !important;
  }
}