/*
Theme Name: k-wam-md
Author: WAM
Version: 1.0
*/
/* Web Font Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&display=swap');
:root{
	--main-color:#007440;
	--main-color-lbg:rgba(0, 116, 64,.02);
	--main-color-bg:rgba(0, 116, 64,.05);
	--main-color-yellow:rgba(250, 197, 76,1);
	--main-color-lyellow:rgba(250, 197, 76,.5);
	--main-color-yellow-bg:#FFFDE9;
	--btn_red:#cc0000;
}

div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video{
    font-size: clamp(1.4rem, 1.6vw, 1.6rem);
}

h1{
	font-size: clamp(2.5rem, 5vw, 3rem);
	line-height: 1.4;
	font-weight: 700;
	color:var(--main-color);
	margin: 0 0 1.5vh;
}
h2{
	font-size: clamp(2rem, 5vw, 2.5rem);
	line-height: 1.4;
	font-weight: 700;
}
h3{
	font-size: clamp(1.8rem, 5vw, 2rem);
	line-height: 1.4;
	font-weight: 700;
}

.section-pt{
	padding-top:6vh;
}
.section-pb{
	padding-bottom:6vh;
}

.contents_bgArea{
    background:#fff;
    padding:4vh 4vw;
    border-radius: 1vh;
}
/* stepflow */

.flowchart {
  display: flex;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: bold;
  color: #1e293b;
}

.flowchart.horizontal {
  flex-direction: row;
  align-items: flex-start;
}
.flowchart.horizontal .flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.flowchart.horizontal .flow-line {
  position: relative;
  width: 70px;
  height: 3px;
  margin-top: calc(48px / 2 - 3px / 2);
  background-color: #e2e8f0;
}

.flow-node, .ttl01 > span{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--main-color);
  color: #ffffff;
  font-size: 19px;
  box-sizing: border-box;
  flex-shrink: 0;
  border-radius: 8px;
}

.flow-texts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}

.flow-label {
  font-size: 15px;
  white-space: nowrap;
}

ul.list_dot{
    display: inline-block;
    padding-left: 0;
}
ul.list_dot li{
    padding-left: 1em;
  text-indent: -1em;
  margin: 0 0 10px;
}
ul.list_dot li::before{
    content: "・";
}

/*---------------------------------------------------------
body
---------------------------------------------------------*/
body{
    background: var(--main-color-lbg);
}

/*---------------------------------------------------------
ヘッダー
---------------------------------------------------------*/
header{
    background: var(--main-color);
    padding: 2vh 1vw;
    border-bottom: 7px solid var(--main-color-yellow);
}
header .header-inner{
    width: 100%;
    margin: 0 auto;
    max-width: 1200px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap:20px;
}
header .header-inner p{
    color:#fff;
    font-weight:700;
}
.site-title img{
    width: 100%;
    min-width: 300px;
}
@media screen and (max-width: 640px) {
    .site-title img{
       min-width: 200px; 
    }
}
/*---------------------------------------------------------
フッター
---------------------------------------------------------*/
footer .footer-inner{
    background-color: var(--main-color);
}
.footer_copy{
    width:95%;
    max-width: 1200px;
    margin:0 auto;
    padding:2vh 2vw;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer_copy p{
    color:#fff;
    font-size:14px;
}

/*---------------------------------------------------------
TOP
---------------------------------------------------------*/
/* 商品を選ぶブロック */
.top-item_area{
    background: var(--main-color-yellow-bg);
}
.top-item_area > h2,
.top-ranking_area > h2{
    margin: 0 0 4vh;
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 3rem);
    color: var(--main-color);
    line-height: 1;
}
.top-item_area > h2 span,
.top-ranking_area > h2 span{
    display: inline-block;
    background: var(--main-color-yellow);
    line-height: 1;
    padding: .5vh 1vw;
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 1.6rem);
    
}
.top_btn_select{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap:15px;
    align-items: stretch;
}
.top_btn_select02{
	display: grid;
	grid-template-columns: 1fr;
	align-items: stretch;
}
/* 要素が1個の場合：中央に1列 */
.top_btn_select:has(> div:nth-last-child(1):first-child) {
    grid-template-columns: repeat(1, minmax(0, 500px));
}

/* 要素が2個の場合：中央に2列 */
.top_btn_select:has(> div:nth-last-child(2):first-child) {
    grid-template-columns: repeat(2, minmax(0, 400px));
}
.top_btn_select div,
.top_btn_select02 div{
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 0 2vw 3vh;
    border: 1px solid #ddd;
    border-radius: 2vh;
    background: #fff;
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.15);
}
.top_btn_select02 div{
    max-width: 800px;
    margin: 0 auto;
}
.top_btn_select h3,
.top_btn_select02 h3{
    margin: 0 auto 1vh;
    display: flex;
    background: var(--main-color);
    border-radius: 0 0 1vh 1vh;
    line-height: 1;
    color: #fff;
    padding: 1vh 3vw;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.4rem, 3vw, 1.6rem);
}
.top_btn_select figure,
.top_btn_select02 figure  {
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top_btn_select img,
.top_btn_select02 img{
    margin: auto;
    display: block;
    object-fit: contain;
    height: 100%;
    max-height: 250px;
}
.top_btn_select a.btn_select_item,
.top_btn_select02 a.btn_select_item {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: opacity 0.2s ease;
}

.top_btn_select a.btn_select_item:hover,
.top_btn_select02 a.btn_select_item:hover {
    opacity: 0.85;
}

/* シーズンごとのブロック */
.season_block .season_title,
.ranking_area h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 0 3vh;
    font-size: clamp(2rem, 5vw, 2.5rem);
}
.season_block .season_title::before,
.season_block .season_title::after,
.ranking_area h3::before,
.ranking_area h3::after{
    content: "";
    width: 60px;
    height: 1px;
    background-color: #333;
}
.season_block .season_title::before,
.ranking_area h3::before{
    margin-right: 20px;
}
.season_block .season_title::after,
.ranking_area h3::after{
    margin-left: 20px;
}

/* メディアタイプボタンエリア（横幅いっぱいに広げる） */
.media_type_nav_buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    box-sizing: border-box;
}

/* 各ボタン（均等幅・等間隔で自動調整） */
.media_type_nav_buttons .btn_media_type {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.media_type_nav_buttons .btn_media_type:hover {
    background-color: var(--main-color, #333) !important;
    color: #000 !important;
    border-color: var(--main-color, #333) !important;
}

/*---------------------------------------------------------
タイトル
---------------------------------------------------------*/
.ttl01{
	display: flex;
    align-items: center;
    width: 100%;
    padding: 0 0 5px;
    border-bottom: 1px solid var(--main-color);
    margin:0 0 1vh;
}
.ttl01 > span{
	margin-right:10px;
}

.ttl_2 {
    position: relative;
    padding: .5em 1.2em;
    color: var(--main-color);
}

.ttl_2::before,
.ttl_2::after {
    display: inline-block;
    position: absolute;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border: 2px solid var(--main-color-yellow);
    content: '';
}

.ttl_2::before {
    top: calc(50% - 3px);
    left: 0;
}

.ttl_2::after {
    top: calc(50% + 3px);
    left: 5px;
}

/*---------------------------------------------------------
ボタン
---------------------------------------------------------*/
.media_type_nav_buttons .btn_media_type:hover {
    background-color: #fff !important;
}

/* 現在開いているページのボタン（アクティブ状態） */
.media_type_nav_buttons .btn_media_type.active {
    background-color: var(--main-color) !important;
    color: #fff !important;
    border-color: var(--main-color) !important;
}

/* =========================================================================
   ランキング表示用スタイル（ranking-display.php）
   ========================================================================= */

.top-ranking_area{
    background: #fff;
}

.promotion_ranking_wrapper {
    margin: 20px 0;
}

.ranking_filter_area {
    margin-bottom: 20px;
    text-align: right;
}

.ranking_filter_area label {
    font-weight: bold;
    margin-right: 8px;
}

.ranking_filter_area select {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.ranking_area .column_title {
    position: relative;
    padding: 0 0 1vh .5vw;
    border-bottom: 2px solid #d8d8d8;
    border-radius: 0;
    background: #fff;
    font-weight: 700;
    margin: 0 0 3vh;
}
.ranking_area .column_title::before{
    position: absolute;
    bottom: -14px;
    left: 1em;
    width: 0;
    height: 0;
    content: '';
    border-width: 14px 12px 0 12px;
    border-style: solid;
    border-color: #d8d8d8 transparent transparent transparent;
}

.ranking_area .column_title::after{
    position: absolute;
  bottom: -10px;
  left: 1em;
  width: 0;
  height: 0;
  content: '';
  border-width: 14px 12px 0 12px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

.ranking_area ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.ranking_area ul li.ranking_item {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 12px;
}

.ranking_area ul li.ranking_item:hover {
    background-color: #f8f9fa;
}

.ranking_area ul li.ranking_item.is-selected {
    border-color: #d9534f !important;
    background-color: #fff5f5 !important;
}

.ranking_area ul li .ranking_img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.ranking_area ul li .ranking_item_title {
    margin: 5px 0 0 0;
    font-weight: 600;
    font-size: 1.4rem;
    text-align: center;
}

.btn_ranking_action_area {
    text-align: center;
    margin-top: 25px;
}

.btn_ranking_action_area .btn_to_flyer_page {
    display: inline-block;
    padding: 12px 30px;
    background: #d9534f;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn_ranking_action_area .btn_to_flyer_page:hover {
    background: #c9302c;
}

/* ランキング順位タグの共通スタイル */
.ranking_area ul li.ranking_item h4 {
  display: inline-block;
  margin: 0 0 8px 0;
  padding: 4px 12px;
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
  background-color: #777;
  border-radius: 20px;
  line-height: 1;
}

/* 1位〜3位の個別カラー設定 */
.ranking_area ul li:nth-child(1) h4 {
  background: linear-gradient(135deg, #d4af37, #f3e5ab);
  color: #fff;
  box-shadow: 0 2px 4px rgba(212, 175, 55, 0.4);
}

.ranking_area ul li:nth-child(2) h4 {
  background: linear-gradient(135deg, #a0a0a0, #e0e0e0);
  color: #fff;
}

.ranking_area ul li:nth-child(3) h4 {
  background: linear-gradient(135deg, #c77b38, #e8a87c);
  color: #fff;
}

/*---------------------------------------------------------
固定ページ
---------------------------------------------------------*/
article.page-layout{
    width:95%;
    max-width:1400px;
    margin:0 auto;
    padding:6vh 0;
}

/*---------------------------------------------------------
注文完了ページ
---------------------------------------------------------*/
.order-number-area{
    margin: 4vh 0;
    text-align: center;
}
.order-number-area p{
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
}
.caution-area{
    margin: 6vh 0;
    background: #f1f1f1;
    padding: 2vh 2vw;
}
.caution-area h3{
    font-size: clamp(1.6rem, 4vw, 1.8rem);
    margin: 0 0 2vh;
}

/*---------------------------------------------------------
入力ページ
---------------------------------------------------------*/
.input_area {
  display: grid;
  grid-template-columns: 1fr calc(25% - 20px); 
  gap: 20px;
  grid-template-areas:
    "item1 item2"
    "item3 item2"
    "item4 item2"
    "item5 item2";
  align-items: start;
  background: #fff;
  padding: 2vh 2vw;
}

.input_contents { grid-area: item1; }

.input_side {
  grid-area: item2;
  position: sticky;
  top: 20px;
  padding: 2vh 1vw;
  border-radius: 1vh;
  background-color: var(--main-color-bg);
}
.order_details_info p.ttl{
    font-weight: 700;
    font-size: 90%;
}
.order_details_info p.type{
    font-size: 80%;
    color:#666;
}
.btn-remove-item{
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    border: none;
    color: #cc0000;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.quantity_content_area:nth-of-type(1) { grid-area: item3; }
.quantity_content_area:nth-of-type(2) { grid-area: item4; }
.client_info { grid-area: item5; }

@media screen and (max-width: 1024px) {
  .input_area {
    grid-template-columns: 1fr;
    grid-template-areas:
      "item1"
      "item3"
      "item4"
      "item2"
      "item5";
    padding: 2vh 4vw;
  }

  .input_side {
    position: static;
    top: auto;
    width: 100%;
    box-sizing: border-box;
  }
}

/* デザインリストの親要素 */
.select_design {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.select_design .design_item {
    display: flex;
    flex-direction: column;
    width: calc(20% - 16px);
    box-sizing: border-box;
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.select_design .design_item .design_img {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 8px;
}

.select_design .design_item .design_img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.select_design .design_item .design_ttl {
    font-size: 0.9em;
    font-weight: bold;
    margin: 0 0 10px 0;
    flex-grow: 1;
}

.select_design .design_item .btn_zoom {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    margin-top: 4px;
}

/* ポスター、ノベルティ時画像高さ調整 */
.article.media_type-poster .select_design .design_item .design_img,
.article.media_type-novelty .select_design .design_item .design_img,
.promotion-single .media_type-poster .select_design .design_item .design_img,
.promotion-single .media_type-novelty .select_design .design_item .design_img {
    height: auto;
    max-height: none;
}

.article.media_type-poster .select_design .design_item .design_img img,
.article.media_type-novelty .select_design .design_item .design_img img,
.promotion-single .media_type-poster .select_design .design_item .design_img img,
.promotion-single .media_type-novelty .select_design .design_item .design_img img {
    height: auto;
    width: 100%;
    object-fit: fill;
}

/* ★修正箇所：レスポンス構文エラーを修正 ( (max-width: 1024px) ) ★ */
@media screen and (max-width: 1024px) {
  .input_area {
    display: flex;
    flex-direction: column;
  }

  .input_contents,
  .input_side,
  .input_contents02 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .input_side {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .input_side_contents {
    position: static !important;
    width: 100%;
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
  }

  .order_details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 35px 12px 10px;
    border-bottom: 1px dashed #ccc;
  }

  .order_details_info {
    flex: 1;
    padding: 0 10px;
  }

  .order_details .price {
    font-weight: bold;
    white-space: nowrap;
  }

  .btn-remove-item {
    top: 50% !important;
    transform: translateY(-50%);
    right: 5px !important;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 20px !important;
  }

  #btn-add-to-order,
  .btn-add-order {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
  }

  .box_culum02 {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }

  .box_culum02 > div {
    width: calc(50% - 8px);
  }

  .select_design {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .select_design .design_item {
    width: calc(33.333% - 7px);
  }
}

/* ★修正箇所：レスポンス構文エラーを修正 ( (max-width: 600px) ) ★ */
@media screen and (max-width: 600px) {
  .box_culum02 > div,
  .select_design .design_item {
    width: 100%;
  }

  .order_details {
    flex-direction: column;
    align-items: flex-start;
  }

  .order_details .price {
    margin-top: 5px;
  }
}

/*---------------------------------------------------------
パーツ
---------------------------------------------------------*/
.input_area h2{
    display: flex;
    align-items: center;
    gap:10px;
    border: 2px solid var(--main-color);
    margin: 0 0 3vh;
    background: var(--main-color);
    color:#fff;
}
.input_area h2 span{
  display: flex;
  align-items: center;
  background: #fff;
  color:var(--main-color);
  aspect-ratio: 1 / 1;
  padding: 1rem;
  line-height: 1;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 5vw, 2.5rem);
}
.badge{
    background: var(--main-color);
    line-height: 1;
    padding: .5rem 2rem;
    border-radius: 50vh;
    color: #fff;
    margin: 0 0 1vh;
    display: inline-block;
}
.icon-must{
    background:#e00303;
    color: #fff;
    padding: .25rem 1rem;
    line-height: 1;
    border-radius: 4px;
    display: inline-block;
    font-size:12px;
    margin-left: 5px;
}
.mini_ttl{
    margin: 3vh 0 1vh;
    font-weight: 700;
    color: var(--main-color);
}
.sub_ttl{
    color: var(--main-color);
    font-weight: 700;
    background: var(--main-color-bg);
    border-radius: 1vh;
    margin: 3vh 0;
    padding: .5vh 1vw;
    font-size: clamp(1.6rem, 5vw, 1.8rem);
}
.empty-msg{
    color: #888;
    font-size: 80%;
}
.txt_box{
    padding: 0 1vw;
    line-height: 1.4;
}
.txt_box ul{
    display: inline-block;
}
.txt_box ul li::before{
    content: "・";
}
.box_culum02{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
}
.txt-mini,.txt-mini span{
    font-size: 90%;
}
.production_box{
    background: var(--main-color-yellow-bg);
    border:1px solid var(--main-color-yellow);
    padding: 2vh 1vw;
}
.production_box p{
    font-size: 90%;
    font-weight: 700;
}
.production_box li{
    font-size: 90%;
}

/* スケジュールエリア基本設定 */
.schedule_calendar{
    background: #f1f1f1;
    border-radius: 1vh;
    padding: 1vh 1vw;
}
#reception-date,#shipping-date,#reception-date-digital,#shipping-date-digital{
	    font-weight: 700;
	    color: #ff0000;
}

/* スケジュールボックス基本設定 */
.schedule_box {
    border: 1px solid var(--main-color);
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background-color: #fff;
}
.schedule-content h3{
    background: var(--main-color-bg);
    padding: .5vh 1vw;
    text-align: center;
    margin: 0 0 2vh;
    color: var(--main-color);
    font-size: clamp(1.6rem, 5vw, 1.8rem);
    border-radius: 50vh;
}
.schedule-content dl{
    display: grid;
    grid-template-columns: 100px auto;
    grid-auto-rows: min-content;
    align-items: center;
}
.schedule-content dt,
.schedule-content dd{
    padding: 1vh .5vw;
    border-bottom: 1px dashed #ccc;
}
.schedule-content dt:nth-last-child(2),
.schedule-content dd:last-child{
    border-bottom: none;
}
.schedule-content dd{
    font-weight: 700;
    text-align: right;
}
.schedule_box.is-selected {
    border-color: #0073aa;
    background-color: #f0f8ff;
    box-shadow: 0 0 8px rgba(0, 115, 170, 0.3);
}

.schedule_box.is-disabled {
    background-color: #e9ecef;
    border-color: #dee2e6;
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.schedule_box.is-disabled .status-label::after {
    content: "※受付期限が過ぎています";
    display: block;
    color: #d9534f;
    font-weight: bold;
    font-size: 0.85em;
    margin-top: 10px;
}

.select_design {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.select_design li {
    flex: 1 1 150px;
    max-width: 100%;
    border: 1px solid #eee;
    padding: 5px;
    background: #fff;
    box-sizing: border-box;
    text-align: center;
}

.select_design li .design_img img {
    max-width: 100%;
    height: auto;
}

.btn_zoom {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    background-color: var(--main-color-bg);
    border:1px solid var(--main-color);
    color: var(--main-color);
    font-size: 12px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.btn_zoom:hover {
    background-color: var(--main-color);
    color: #fff;
}
.btn_sub_zoom{
    display: inline-block;
    margin-top: 5px;
    background: #fff;
    color: var(--main-color);
    border:1px solid var(--main-color);
    text-align: center;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    text-decoration: none;
}
.btn_sub_zoom:hover{
    background-color: var(--main-color);
    color: #fff;
}

.select_design li.design_item {
    cursor: pointer;
    position: relative;
    border: 2px solid #ddd;
    transition: all 0.2s ease;
}

.select_design li.design_item:hover {
    border-color: #999;
}

.select_design li.design_item.is-selected {
    border-color: #0073aa;
    background-color: #f0f8ff;
    box-shadow: 0 0 8px rgba(0, 115, 170, 0.3);
}

.select_design li.design_item.is-selected::after {
    content: "✓ 選択中";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #0073aa;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: bold;
}

.wpcf7-form-control-wrap[data-name="toggle-delivery-breakdown"] label {
    display: block;
    padding: 10px 15px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 4px;
    position: relative;
}

.wpcf7-form-control-wrap[data-name="toggle-delivery-breakdown"] input[type="checkbox"] {
    display: none;
}

.wpcf7-form-control-wrap[data-name="toggle-delivery-breakdown"] label::after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    font-weight: bold;
}

.wpcf7-form-control-wrap[data-name="toggle-delivery-breakdown"] input[type="checkbox"]:checked + span::before + label {
    background-color: #e0e0e0;
}

.wpcf7-form-control-wrap[data-name="toggle-delivery-breakdown"] input[type="checkbox"]:checked + span + label::after {
    content: '-';
}

#select-price-flyer + .wpcf7-not-valid-tip,
#select-price + .wpcf7-not-valid-tip {
    display: none !important;
}
#select-price-novelty ~ .wpcf7-not-valid-tip,
#novelty-delivery-area ~ .wpcf7-not-valid-tip {
    display: none !important;
}

/*---------------------------------------------------------
フォーム関連
---------------------------------------------------------*/
h2.form-ttl{
    padding: 3vh 0 0;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
    padding: 10px 14px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
}

.wpcf7 textarea {
    height: 120px;
    padding: 12px 14px;
}

.wpcf7 select {
    height: 44px;
    background-color: #fff;
}

div[data-class="group-delivery-breakdown"] {
    border: 1px solid #ccc;
    border-top: none;
    padding: 15px;
    border-radius: 0 0 4px 4px;
}

#btn-add-to-order.btn-add-order {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    padding: 14px 20px;
    background-color: var(--btn_red);
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

#btn-add-to-order.btn-add-order:hover {
    background-color: #b80202;
    opacity: 0.9;
}

#btn-add-to-order.btn-add-order::after {
    content: "+";
    position: absolute;
    right: 20px;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.wpcf7-submit.form-txt {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    padding: 16px 20px;
    background-color: var(--btn_red);
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    -webkit-appearance: none;
}

.wpcf7-submit.form-txt:hover {
    background-color: #b80202;
    opacity: 0.9;
}

.wpcf7-submit.form-txt::after {
    content: "▶";
    position: absolute;
    right: 20px;
    font-size: 12px;
    line-height: 1;
}

.wpcf7-form-control-wrap[data-name="toggle-delivery-breakdown"] .wpcf7-list-item,
.wpcf7-checkbox label {
    display: block;
    width: 100%;
    margin: 0 !important;
}

.wpcf7-checkbox .wpcf7-list-item-label {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    padding: 14px 20px;
    background-color: #eee;
    color: #000;
    font-weight: bold;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.wpcf7-checkbox .wpcf7-list-item-label:hover {
    background-color: #ccc;
}

.wpcf7-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.wpcf7-checkbox .wpcf7-list-item-label::after {
    content: "▼";
    font-size: 12px;
    color: #000;
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.wpcf7-checkbox input[type="checkbox"]:checked + .wpcf7-list-item-label {
    background-color: #bbb;
}

.wpcf7-checkbox input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
    transform: rotate(180deg);
}

/* ★折込部数（inserts）のエラーメッセージ（tip）を完全非表示★ */
.wpcf7-form-control-wrap[data-name="inserts"] .wpcf7-not-valid-tip,
.wpcf7-form-control-wrap[data-name="inserts"] + .wpcf7-not-valid-tip,
span[data-name="inserts"] .wpcf7-not-valid-tip,
span[data-name="inserts"] + .wpcf7-not-valid-tip {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    font-size: 0px !important;
    line-height: 0 !important;
    height: 0px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* 赤枠のボーダーのみ通常色（#ccc）に戻す */
.wpcf7-form-control-wrap[data-name="inserts"] select,
.wpcf7-form-control-wrap[data-name="inserts"] select.wpcf7-not-valid {
    border-color: #ccc !important;
}

@media screen and (max-width: 640px) {
   .box_culum02{
      grid-template-columns: 1fr; 
   } 
}

/* サイト内のすべての画像でドラッグと選択を禁止 */
img {
  -webkit-user-drag: none; /* Safari/Chromeでのドラッグ禁止 */
  user-select: none;       /* テキスト・画像の選択禁止 */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* 特定のクラス（例: no-save）が付いた画像のみ右クリック・保存を完全に無効化する場合 */
img.no-save {
  pointer-events: none; /* マウスイベント（右クリック・ドラッグ等）を完全に無視 */
}

/* Lity モーダル内の画像表示領域を拡大操作向けに最適化 */
.lity-content {
    overflow: hidden !important; /* ズーム時に枠外を非表示 */
}

.lity-content img {
    cursor: grab; /* マウスオーバー時のカーソル表示 */
}

.lity-content img:active {
    cursor: grabbing; /* ドラッグ中のカーソル表示 */
}