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

/* =================================================
   Common
================================================= */
body{
  font-size:14px;
  line-height:1.7;
  color:#2b2f36;
	font-family:
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Arial,
    sans-serif;
	background-color:#fff;
}
/*デフォルトリンク*/
a {
color: #364253;
}
a:hover {
color: #999;
}

/* hover（ヘッダー） */
.fc-header__nav a:hover,
.fc-header__actions a:hover{
  color:#ffffff;
  opacity:0.7;
}

/* PC / SP 表示切替 */
.pc{ display:block!important; }
.sp{ display:none!important; }
@media screen and (max-width: 834px){
  .pc{ display:none!important; }
  .sp{ display:block!important; }
}

/* ヘッダー（stickyの影） */
.fc-header{
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* =================================================
   FV Slider
================================================= */
.fv-slider{
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
}
.fv-slider__track{
  display: flex;
  transition: transform .6s ease;
  will-change: transform;
}
.fv-slide{
  position: relative;
  min-width: 100%;
  height: clamp(320px, 55vw, 680px);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.fv-slide picture, .fv-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}
.fv-slide__caption{
  position: absolute;
  inset: auto 0 8% 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: 0 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.fv-slide__caption h2{
  font-size: clamp(22px, 3.5vw, 44px);
  margin: 0 0 8px;
  font-weight: 800;
}
.fv-slide__caption p{
  font-size: clamp(14px, 1.5vw, 18px);
  margin: 0;
  opacity: .9;
}

/* ナビボタン */
.fv-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  color:#fff;
  border:0;
  cursor:pointer;
  display:grid;
  place-items:center;
  font-size: 28px;
  line-height: 1;
}
.fv-btn:hover{ background: rgba(0,0,0,.65); }
.fv-btn.prev{ left: 10px; }
.fv-btn.next{ right: 10px; }

/* ドット */
.fv-dots{
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display:flex;
  gap:10px;
}
.fv-dots button{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border:0;
  cursor:pointer;
  background: rgba(255,255,255,.45);
}
.fv-dots button.is-active{ background: #fff; }

/* =================================================
   M&A：会社ページ（弊社について）
================================================= */
.ma-company-section{ padding: 60px 0; }
.ma-company-section--philosophy{ padding-top: 40px; }

.ma-company__heading{
  font-size: 1.4rem;
  text-align: center;
  letter-spacing: 0.18em;
  margin-bottom: 24px;
}
.ma-company__lead{
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.9rem;
  line-height: 1.9;
  text-align: center;
  color: #555;
}
.ma-company__box{
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
}
.ma-company__box--large{ padding: 24px 20px; }

.ma-company-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.ma-company-table th,
.ma-company-table td{
  padding: 10px 12px;
  border-bottom: 1px solid #e5e5e5;
}
.ma-company-table tr:last-child th,
.ma-company-table tr:last-child td{ border-bottom: none; }

.ma-company-table th{
  width: 7em;
  background: #fafafa;
  text-align: left;
  vertical-align: top;
  letter-spacing: 0.08em;
}
.ma-company-table td{
  color: #555;
  line-height: 1.8;
}
.ma-company-table a{ text-decoration: underline; }

/* サービスラインナップ */
.ma-company-section--services{ padding-bottom: 80px; }
.ma-services{
  max-width: 720px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ma-services__item{
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.ma-services__thumb{
  flex: 0 0 72px;
  height: 72px;
  border: 1px solid #e0e0e0;
  background: #fafafa;
}
.ma-services__body{ flex: 1 1 auto; }
.ma-services__title{
  font-size: 1rem;
  margin: 0 0 8px;
}
.ma-services__text{
  font-size: 0.85rem;
  line-height: 1.8;
  color: #555;
  margin: 0 0 8px;
}
.ma-services__link{
  display: inline-block;
  font-size: 0.8rem;
  text-decoration: underline;
  color: #555;
}

@media (max-width: 768px) {
  .ma-company-section{ padding: 40px 0; }
  .ma-company__box--large{ height: 180px; }
  .ma-services__item{ align-items: flex-start; }
}

/* =================================================
   Bay Creation：共通UI（カード/グリッド/見出し）
   ※ 重複していた .bc-grid / .bc-card / .bc-card__code を統合
================================================= */

.bc-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
  height:100%;
}
.bc-card{
  border: 1px solid #e6e6e6;
  background:#fff;
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bc-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}
.bc-card__link{
  display:flex;
  flex-direction:column;
  height:100%;
}
.bc-card__thumb{
aspect-ratio: 4 / 3;
overflow:hidden;
}

.bc-card__thumb img{
  width:100%;
  height:auto;
  display:block;
object-fit:cover;
}
.bc-card__noimg{
  aspect-ratio: 4/3;
  background:#eee;
}
.bc-card__code{
  text-align:center;
  font-weight:800;
  font-size:16px;
  letter-spacing:.04em;
  padding: 10px 8px 12px;
  color:#2c3e50;
}

/* TOPスライダー用（統一） */
.cs-card-title{
  text-align:center;
  font-weight:700;
  font-size:16px;
  margin-top:8px;
  letter-spacing:.04em;
}

/* レスポンシブ */
@media (max-width: 900px){
  .bc-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .bc-grid{ grid-template-columns: 1fr; }
}

/* =================================================
   Bay Creation：ボタン/導線（グラデ無し・シンプル）
   ※ 重複していた .bc-btn / .bc-actions を統合
================================================= */

.bc-actions{
  display:grid;
  gap:12px;
  margin: 14px 0 18px;
}
.bc-actions__row{
  display:block;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

/* ボタン本体 */
.bc-btn{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  padding:18px 16px;

  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:10px;

  text-decoration:none;
  color:#111;

  transition:.2s ease;
}
.bc-btn:hover{
  transform: translateY(-2px);
  border-color:#111;
}

/* 文言 */
.bc-btn__icon{
  font-size:18px;
  margin-bottom:6px;
  opacity:.7;
}
.bc-btn__text{
  font-weight:700;
  font-size:16px;
  letter-spacing:.04em;
}
.bc-btn__sub{
  font-size:13px;
  opacity:.55;
  margin-top:2px;
}

/* バリエーション */
.bc-btn--ghost {
    background: #d1f0ff;
    filter: drop-shadow(0px 0px 3px #e5e7eb);
}
.bc-btn--primary{
  border:2px solid #2b2f36;
  font-weight:700;
}

.bc-btn:hover{
  transform:translateY(-1px);
}


.bc-order{
  border:1px solid #e6e6e6;
  background:#fff;
  padding: 14px;
  border-radius: 12px;
}
.bc-order__head{ margin-bottom:10px; }
.bc-order__title{ font-weight:800; font-size:16px; }
.bc-order__desc{ font-size:14px; opacity:.75; margin-top:4px; }

.bc-order__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 760px){
  .bc-actions__row{ grid-template-columns: 1fr; }
  .bc-order__grid{ grid-template-columns: 1fr; }
}

/* =================================================
   Category Page / List UI
================================================= */

.bc-list__head{ margin: 0 0 16px; }
.bc-list__title,.bc-create__title{
  font-size:20px;        /* ←22は少しデカいので下げる */
  font-weight:700;
  color:#2b2f36;

  padding-left:14px;
  border-left:4px solid #2b2f36;

  margin-bottom:18px;
}

.bc-list__lead{ margin: 0; font-size: 13px; opacity: .85; line-height: 1.8; }
.bc-pager{ margin: 6px 0 22px; }

/* 旧：カテゴリレイアウト（もし使ってるなら残す） */
.bc-category__layout{
  max-width:1100px;
  margin:0 auto;
  padding:40px 16px;
  display:flex;
  gap:24px;
}
.bc-nav{
  width:260px;
  background:#f5f9fd;
  border:1px solid #c5d8e6;
  border-radius:10px;
  padding:16px;
}
.bc-nav__title{
  font-size:16px;
  font-weight:700;
  margin-bottom:10px;
}
.bc-nav__list{
  list-style:none;
  padding:0;
  border-top:2px dotted #4a90c6;
}
.bc-nav__item{ border-top:1px solid #d5e1ec; }
.bc-nav__link{
  display:block;
  padding:10px 6px;
  color:#364253;
  text-decoration:none;
}
.bc-nav__item.is-current .bc-nav__link{
  background:#0078b5;
  color:#fff;
  border-radius:6px;
}
.bc-list{ flex:1; }
.bc-posts article{ margin-bottom:20px; }

/* 旧：CATEGORY一覧レイアウト（もし使ってるなら残す） */
.bc-templates__wrap{
  width:min(1100px, calc(100% - 40px));
  margin: 0 auto;
  display:grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 28px 0 60px;
}
.bc-templates__side{
  border:1px solid #e6e6e6;
  padding: 16px;
  background:#fff;
}
.bc-side__title{ font-weight:700; margin-bottom: 10px; }
.bc-side__cats{ list-style:none; margin:0; padding:0; }
.bc-side__cats li{ margin:0; padding:0; }
.bc-side__cats a{
  display:block;
  padding:10px 10px;
  text-decoration:none;
  border-radius:6px;
}
.bc-side__cats .current-cat > a{
  background:#f2f2f2;
  font-weight:700;
}

.bc-head{
  border:1px solid #e6e6e6;
  padding: 16px;
  background:#fff;
  margin-bottom: 16px;
}
.bc-head__title{ margin:0; font-size:22px; }

@media (max-width: 900px){
  .bc-templates__wrap{ grid-template-columns: 1fr; }
}

/* =================================================
   Price table（共通）
================================================= */
.bc-price--modern{
  margin-top: 12px;
  display:grid;
  gap: 14px;
}
.bc-price__head{
  border:1px solid #e8e8ee;
  border-radius:16px;
  background:#fff;
  padding:14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}
.bc-price__title{
  margin:0;
  font-size:16px;
  font-weight:800;
}
.bc-price__note{
  margin:6px 0 0;
  font-size:12px;
  opacity:.75;
  line-height:1.7;
}
.bc-pricecard{
  border:1px solid #e8e8ee;
  border-radius:16px;
  background:#fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  overflow:hidden;
}
.bc-pricecard__top{
  padding:14px 14px 10px;
  background:#fff;               /* ←グラデ削除（フラット） */
  border-bottom:1px solid #f0eef7;
}
.bc-pricecard__badge{
  display:inline-block;
  font-size:11px;
  font-weight:800;
  padding:6px 10px;
  border-radius:999px;
  color:#111;
  background:#f2f2f2;
  margin-bottom:10px;
margin-right: 10px;
}
.bc-pricecard__title{
  margin:0;
  font-size:14px;
  font-weight:800;
}
.bc-pricecard__meta{
  margin-top:6px;
  font-size:12px;
  opacity:.7;
}

/* table */
.bc-tablewrap{ padding: 10px 12px 14px; overflow:auto; }
.bc-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:13px;
}
.bc-table th, .bc-table td{
  padding:10px 10px;
  border-bottom:1px solid #f0eef7;
  white-space:nowrap;
}
.bc-table thead th{
  font-size:12px;
  opacity:.75;
  font-weight:700;
}
.bc-table tbody tr:hover td{
  background: rgba(0,0,0,.03);
}
.bc-table td strong{ font-weight:900; }

/* =================================================
   single 投稿ページ
================================================= */
.bc-detail{
  border:1px solid #e8e8ee;
  border-radius:16px;
  background:#fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  overflow:hidden;
  margin: 12px 0 16px;
}
.bc-detail__head{
  padding: 14px;
  border-bottom: 1px solid #f0eef7;
  background:#fff;               /* ←グラデ削除（フラット） */
}
.bc-detail__code{
  margin:0;
  font-size:22px;
  font-weight:900;
  letter-spacing:.04em;
  text-align:center;
}
.bc-detail__hero img{
  width:100%;
  height:auto;
  display:block;
}
.bc-detail__content{
  padding: 14px;
  line-height: 1.9;
  font-size: 14px;
}

/* =================================================
   Create menu page
================================================= */
.bc-create__head{ margin: 0 0 14px; }

.bc-create__lead{
  margin:0;
  font-size: 13px;
  opacity:.82;
  line-height:1.9;
}
.bc-create__section{ margin: 14px 0 18px; }
.bc-create__sectionhead{ margin: 0 0 10px; }
.bc-create__h2{ margin:0; font-size:16px; font-weight:900;border-bottom: 1px solid;padding: 10px 0;}
.bc-create__sub{
  margin:6px 0 0;
  font-size:12px;
  opacity:.72;
  line-height:1.7;
}

/* 用途カード */
.bc-usegrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bc-usecard{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px;
  border:1px solid #e8e8ee;
  border-radius: 16px;
  background:#fff;
  text-decoration:none;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bc-usecard:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
  border-color: rgba(0,0,0,.35);
}
.bc-usecard__icon{
  width: 44px;
  height: 44px;
  display:grid;
  place-items:center;
  border-radius: 12px;
  background:#111;              /* ←グラデ削除（フラット） */
  color:#fff;
  flex: 0 0 auto;
}
.bc-usecard__title{
  font-weight: 900;
  font-size: 13px;
  line-height:1.4;
}
.bc-usecard__desc{
  margin-top: 4px;
  font-size: 12px;
  opacity:.72;
}
.bc-usecard__arrow{
  margin-left:auto;
  font-size: 22px;
  opacity:.6;
}

.bc-pick{ margin: 14px 0 18px; }

.bc-pick__title{ margin:0; font-size: 14px; font-weight: 900; }
.bc-pick__more{
  display:inline-block;
  padding:8px 14px;
  border:1px solid #333;
  border-radius:999px;
  text-decoration:none;
  color:#222;

}

.bc-pick__more:hover{ background:#333; color:#fff; }
.cs-more--center {
    text-align: center;
}
@media (max-width: 760px){
  .bc-usegrid{ grid-template-columns: 1fr; }
}

/* =================================================
   Responsive placeholders（元の枠を残す）
================================================= */
@media screen and (max-width: 1023px){
  /* 必要ならばここにコードを書く */
}
@media screen and (max-width: 480px){
  /* 必要ならばここにコードを書く */
}





/* ===============================
   GUIDE PAGE
=============================== */
.bc-guide{
  max-width: 980px;
}

.bc-guide__head{ margin: 0 0 18px; }
.bc-guide__title{
  margin:0 0 6px;
  font-size:24px;
  font-weight:800;
  letter-spacing:.04em;
}
.bc-guide__lead{
  margin:0;
  font-size:13px;
  opacity:.75;
  line-height:1.8;
}

.bc-guide__box{
  border:1px solid #e5e7eb;
  background:#fff;
  border-radius:10px;
  padding:22px;
  margin: 0 0 16px;
}

.bc-guide__h2{
  margin:0 0 12px;
  font-size:18px;
  font-weight:800;
  padding-left:12px;
  border-left:2px solid #2b2f36;
}

.bc-guide__h3{
  margin: 12px 0 8px;
  font-size:15px;
  font-weight:800;
}

.bc-guide__list{
  margin:0;
  padding-left:18px;
  line-height:1.95;
  font-size:14px;
}

.bc-guide__p{
  margin: 0 0 10px;
  line-height:1.95;
  font-size:14px;
}

.bc-guide__note{
  margin: 10px 0 0;
  font-size:13px;
  opacity:.75;
  line-height:1.8;
}

.bc-guide__subbox{
  margin: 12px 0 12px;
  padding: 14px;
  border:1px solid #eef0f3;
  border-radius:10px;
  background:#fafafa;
}

.bc-guide__price{
  display:inline-block;
  margin-top: 8px;
  padding: 10px 12px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#fff;
  font-size:14px;
}

.bc-paper{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bc-paper__card{
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding: 14px;
  background:#fff;
}

@media (max-width: 768px){
  .bc-paper{ grid-template-columns: 1fr; }
  .bc-guide__box{ padding: 18px; }
}


/* =================================================
   Order Form page only (/orderform/)
   ================================================= */

/* もし固定ページIDが分かれば page-id-xx にすると更に安全
   例: .page-id-95 .bc-form { ... }
   まずはスラッグ想定で body の class を使います
*/
body.page-slug-orderform .entry-content,
body.page-slug-orderform .article{
  max-width: 980px;
}

/* Cocoonのフォーム装飾を抑えつつ整える */
body.page-slug-orderform .wpcf7 form{
  margin-top: 10px;
}

body.page-slug-orderform .bc-form{
  max-width: 980px;
  margin: 0 auto;
}

body.page-slug-orderform .bc-form__title{
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 18px;
  padding-left: 12px;
  border-left: 2px solid #2b2f36;
}

/* 1項目ごとのブロック */
body.page-slug-orderform .bc-form__row{
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
}

body.page-slug-orderform .bc-form__row label{
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #2b2f36;
}

.bc-form .req{
  font-size: 12px;
  font-weight: 700;
  color: #a90000;
}



/* 入力 */
body.page-slug-orderform .bc-form input[type="text"],
body.page-slug-orderform .bc-form input[type="email"],
body.page-slug-orderform .bc-form input[type="tel"],
body.page-slug-orderform .bc-form input[type="url"],
body.page-slug-orderform .bc-form select,
body.page-slug-orderform .bc-form textarea{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 12px;
  background: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  margin: 0;
}

body.page-slug-orderform .bc-form textarea{ min-height: 120px; }

body.page-slug-orderform .bc-form input:focus,
body.page-slug-orderform .bc-form select:focus,
body.page-slug-orderform .bc-form textarea:focus{
  border-color: #c7cbd4;
  box-shadow: 0 0 0 4px rgba(0,0,0,.04);
}

/* ラジオ・チェック（横並び/折返し） */
body.page-slug-orderform .bc-form .wpcf7-list-item{
  margin: 0 14px 0 0;
  display: inline-flex;
  align-items: center;
}
body.page-slug-orderform .bc-form input[type="radio"],
body.page-slug-orderform .bc-form input[type="checkbox"]{
  margin: 0 6px 0 0;
}

/* 2カラム入力（デザイン番号） */
body.page-slug-orderform .bc-form__inline2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
body.page-slug-orderform .bc-form__mini{
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 6px;
}

body.page-slug-orderform .bc-form__hint{
  margin: 10px 0 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.7;
}

/* 送信ボタン */
body.page-slug-orderform .bc-form__submit{
  margin-top: 12px;
  text-align: center;
}
body.page-slug-orderform .bc-submit{
  width: min(360px, 100%);
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #2b2f36;
  background: #fff;
  color: #2b2f36;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  transition: .2s ease;
}
body.page-slug-orderform .bc-submit:hover{
  background: #2b2f36;
  color: #fff;
}

.entry-content {
max-width: 800px;
width: 95%;
margin: 0 auto;
}

/* SP */
@media (max-width: 640px){
  body.page-slug-orderform .bc-form__inline2{
    grid-template-columns: 1fr;
  }
}

.page-id-19 .entry-title,.page-id-104 .entry-title{
  display:none;
}

.sns-follow{
  display:none;
}


/* 各カテゴリ名は #40E0D0 背景＋白文字のバッジ */
.bc-pick__title{
  display: block;              /* inline-block → block に変更 */
  width: 100%;                 /* 横幅100% */
  background: #0078B5;         /* 既存の背景色 */
  color: #fff;
  padding: 8px 14px;
  border-radius: 0;            /* バッジ風なら残す、帯風にしたいなら 0 に */
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  text-align: left;            /* 必要なら center に */
}
/* ====== Card Slider base ====== */
.cs-section { margin: 24px 0; }

.cs-slider{
  position: relative;
  overflow: hidden; /* はみ出し防止 */
  padding: 0 44px;  /* ボタン分の余白 */
}

.cs-track{
  display: flex;
  gap: 14px;
  overflow-x: auto;                 /* JS無しでも横スクOK */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cs-track::-webkit-scrollbar{ display:none; }

.cs-card{
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 100%;
  max-width: 100%;
}

/* サムネ比率が崩れるのを防ぐ */
.cs-thumb{
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
}
.cs-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

/* ボタン */
.cs-btn{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  cursor: pointer;
  z-index: 2;
}
.cs-btn.prev{ left: 8px; }
.cs-btn.next{ right: 8px; }


/* =============================== SP 横はみ出し根治（cs-aside / display-name） =============================== */ /* 横スクロール自体を出さない（最終防衛） */ html, body{ overflow-x: clip; } @supports not (overflow: clip){ html, body{ overflow-x: hidden; } } /* 1) 作成メニュー：aside が 342px になって溢れてるので「画面幅基準」で縛る */ @media (max-width: 768px){ aside.cs-aside{ box-sizing: border-box !important; width: calc(100vw - 32px) !important; /* 左右16px想定で確実に収める */ max-width: calc(100vw - 32px) !important; margin-left: auto !important; margin-right: auto !important; overflow: hidden !important; } } /* 2) display-name が画面外にいるので、その親（ヘッダー周り）で横はみ出しを切る */ @media (max-width: 768px){ header, .fc-header, .site-header, .header-container, .header{ overflow-x: clip; } @supports not (overflow: clip){ header, .fc-header, .site-header, .header-container, .header{ overflow-x: hidden; } } } .single-news .bc-actions, .single-news .bc-price--modern, .single-news .bc-pricecard { display: none !important; }


.single-news .bc-actions,
.single-news .bc-price--modern,
.single-news .bc-pricecard {
  display: none !important;
}

/* =============================== 
   SP 横はみ出し根治（cs-aside / display-name）
   ※ユーザーが戻した版（そのまま）
=============================== */

/* 横スクロール自体を出さない（最終防衛） */
html, body{
  overflow-x: clip;
}
@supports not (overflow: clip){
  html, body{ overflow-x: hidden; }
}

/* 1) 作成メニュー：aside が 342px になって溢れてるので「画面幅基準」で縛る */
@media (max-width: 768px){
  aside.cs-aside{
    box-sizing: border-box !important;
    width: calc(100vw - 32px) !important; /* 左右16px想定で確実に収める */
    max-width: calc(100vw - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden !important;
  }
}

/* 2) display-name が画面外にいるので、その親（ヘッダー周り）で横はみ出しを切る */
@media (max-width: 768px){
  header, .fc-header, .site-header, .header-container, .header{
    overflow-x: clip;
  }
  @supports not (overflow: clip){
    header, .fc-header, .site-header, .header-container, .header{
      overflow-x: hidden;
    }
  }
}

.single-news .bc-actions,
.single-news .bc-price--modern,
.single-news .bc-pricecard {
  display: none !important;
}

/* =============================== 
   ここから：作成メニュー（cs-slider）スマホ崩れ修正 “完全版”
   右の大きい余白・左に細く寄る・画像だけ細い 等を全部止める
=============================== */

/* 共通：flexのはみ出し事故を防ぐ（超重要） */
.cs-main,
.cs-section,
.cs-slider,
.cs-track,
.cs-card,
.cs-link{
  min-width: 0;
}

/* trackの基本 */
.cs-track{
  display: flex;
  gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.cs-track::-webkit-scrollbar{ display:none; }

.cs-card{
  flex: 0 0 auto;
  scroll-snap-align: start;
  max-width: 100%;
}

/* 画像比率で高さ崩れ防止 */
.cs-thumb{
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
}
.cs-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* タイトルが横幅を押し広げないように */
.cs-card-title{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== PC/タブレット：data-visibleに合わせて幅計算 ===== */
@media (min-width: 1024px){
  .cs-section[data-visible-desktop="3"] .cs-card{
    width: calc((100% - 14px*2) / 3);
  }
}
@media (min-width: 835px) and (max-width: 1023px){
  .cs-section[data-visible-tablet="2"] .cs-card{
    width: calc((100% - 14px*1) / 2);
  }
}

/* ===== スマホ：1枚を確実に100%表示（崩れ最優先で止める） ===== */
@media (max-width: 834px){

  /* セクションとスライダーを全幅に戻す */
  .cs-section{
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }
  .cs-slider{
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
  .cs-track{
    width: 100%;
    box-sizing: border-box;
  }

  /* ★最重要：カード幅を強制的に100%に */
  .cs-section[data-visible-mobile="1"] .cs-card{
    width: 100% !important;
    flex: 0 0 100% !important;
  }

  /* スマホはボタン無しでスワイプ優先（必要なら消してOK） */
  .cs-btn{ display: none; }
}

/* スナップ中の中間停止を減らす */
.cs-card{ scroll-snap-stop: always; }