app/template/default/Cart/Catalog.twig line 1073

Open in your IDE?
  1. {# @version  EC=CUBE4.1 TWIG
  2.  # @copyright 株式会社 翔 kakeru.co.jp
  3.  # @author
  4.  # 2022年03月21日作成
  5.  #
  6.  # app/template/default/Cart/Catalog.twig
  7.  #
  8.  #
  9.  #
  10.  # カートカタログ
  11.  # 2022/11/30
  12.  #
  13.  #
  14.  #                                                  ≡≡≡┏(^o^)┛
  15.  ##############################################################}
  16. {% set Limit = CatalogLimit() %}
  17. {% extends 'default_frame.twig' %}
  18. {% set body_class = 'cart_page' %}
  19. {% block javascript %}
  20. <script>
  21.     function SubWindowOpen(url,name){
  22.         window.open(url, name , "width={{SubWindoWData.width}},height={{SubWindoWData.height}},scrollbars={{SubWindoWData.scroll}}");
  23.     }
  24.     var $form = $('form#catalog_form');
  25.     $(document).ready(function(){
  26.         check_select_count();
  27.         $("input[name='LmOrderOption[catalog][]']").change(function(e) {
  28.             check_select_count();
  29.         });
  30.     });
  31.     function check_select_count(){
  32.         var $checked_list = $("#catalog-list-area input[type=checkbox]:checked");
  33.         var $not_checked_list = $("#catalog-list-area input[type=checkbox]").not(":checked");
  34.         if( $checked_list.length >= {{ Limit.cl_quantity_limit }} ){
  35.             $not_checked_list.prop('disabled', true);
  36.         } else{
  37.             $not_checked_list.prop('disabled', false);
  38.         }
  39.     }
  40. </script>
  41. {% if isMobile %}
  42.     <script>
  43.         function check_input(){
  44.             if( $('input[name="LmOrderOption[catalog][]"]:checked', $form).length == 0 ){
  45.                 showAlertWindow('カタログを選択してください');
  46.                 return false;
  47.             }
  48.             $form.submit();
  49.         }
  50.         function showAlertWindow(msg) {
  51.             last_scroll_top_value = $(document).scrollTop();
  52.             $("#alert-window p.alert-explain").html(msg);
  53.             $("body").css("height", $(window).height());
  54.             $("body").css("overflow", "hidden");
  55.             $("#overlay").css("visibility", "visible");
  56.             $("#alert-window").css("visibility", "visible");
  57.         }
  58.         function closeAlertWindow() {
  59.             $("body").css("height", "auto");
  60.             $("body").css("overflow", "auto");
  61.             $("#overlay").css("visibility", "hidden");
  62.             $("#alert-window").css("visibility", "hidden");
  63.             window.scrollTo(0, last_scroll_top_value);
  64.         }
  65.         $('input[name="LmOrderOption[catalog][]"]').on('change', function(e) {
  66.             if ($('input[name="LmOrderOption[catalog][]"]:checked').length > 0) {
  67.                 $('#cts-float-button').fadeIn(500);
  68.             } else {
  69.                 $('#cts-float-button').fadeOut(500);
  70.             }
  71.         });
  72.     </script>
  73. {% else %}
  74.     <script src="/javascripts/jquery-ui.min.js" type="text/javascript"></script>
  75.     <script src="/javascripts/jquery.efo.js" type="text/javascript"></script>
  76.     <script>
  77.         var efo_elm = $("[class^=efo]").efo({
  78.             confirmation : {
  79.                 enabled : false,
  80.                 form : document.forms.mail_fm
  81.             },
  82.             notification : {
  83.                 enabled : true
  84.             },
  85.             validation : {
  86.                 bind : 'efo_change'
  87.             },
  88.             tooltipping : {
  89.                 enabled : true
  90.             },
  91.             observation : {
  92.                 enabled : true
  93.             }
  94.         }).on('efo_afterValidate', function(event, data){
  95.             if (data.remaining > 0) {
  96.                 $('.btnMask').show();
  97.                 $('.btnNext').hide();
  98.             } else {
  99.                 $('.btnMask').hide();
  100.                 $('.btnNext').show();
  101.             }
  102.         });
  103.         $('input[name="LmOrderOption[catalog][]"]').on('change', function(e) {
  104.             var $checkbox = $(this);
  105.             var $box = $checkbox.closest('.catalog-list-box-inner');
  106.             if( $checkbox.prop('checked') ){
  107.                 $box.addClass('catalog-list-box-selected');
  108.             } else{
  109.                 $box.removeClass('catalog-list-box-selected');
  110.             }
  111.         });
  112.     </script>
  113. {% endif %}
  114. {% endblock %}
  115. {% block stylesheet %}
  116. <link rel="stylesheet" href="/stylesheets/style_estimate.css">
  117. <link rel="stylesheet" href="/stylesheets/stylesheet.css">
  118. <link rel="stylesheet" href="/stylesheets/jquery.efo.css">
  119. {% if isMobile %}
  120.     <link rel="stylesheet" href="/stylesheets/css/sp/common.css">
  121. {% endif %}
  122. <style>
  123.     .red{
  124.         color: red;
  125.     }
  126.     #contents_wrapper{
  127.         width: 990px;
  128.         margin: 0 auto;
  129.     }
  130.     #contents{
  131.         width: 100%;
  132.     }
  133. #stap_area{
  134.     width :100%;
  135.     margin-bottom:20px;
  136. }
  137. #step_area .form{
  138.     width:100%;
  139. }
  140. #step_area .form img{
  141.     width:100%;
  142. }
  143. #step_area .step{
  144.     width:100%;
  145.     margin: 20px auto;
  146.     text-align:center;
  147. }
  148. #CartCatalog #catalog_btn_area{
  149.      visibility:hidden;
  150. }
  151. #CartCatalog .otodoke{
  152.     background-color: #FFFFCC;
  153.     padding: 20px;
  154.     text-align:
  155.     center;
  156.     border: 1px solid #FFFF99;
  157.     margin: 20px auto 30px;
  158.     width: 680px;
  159.     border: 1px solid #FFCD82;
  160.     border-radius: 10px;
  161.     font-size:13px;
  162. }
  163. #CartCatalog .otodoke p.title{
  164. font-weight: bold;
  165. font-size: 16pt;
  166. }
  167. #CartCatalog .CatalogCatagoryLabel{
  168.     font-size: 21px;
  169.     font-weight: bold;
  170.     border-bottom: 2px solid #ffb05c;
  171.     padding: 25px 0 10px 10px;
  172.     letter-spacing: .1em;
  173.     display: block;
  174.     margin-bottom:20px;
  175. }
  176. #CartCatalog ul.CatalogList{
  177.     width:100%;
  178.     margin-bottom:30px;
  179.     /*display: flex;
  180.     display : -webkit-box;
  181.     justify-content: center;
  182.     -webkit-align-items: center;
  183.     align-items: center*/
  184. }
  185. #CartCatalog li.catalog-list-box{
  186.     width: 240px;
  187.     padding: 1px;
  188.     margin-bottom:20px;
  189.     display:inline-block;
  190.     vertical-align: top;
  191.     margin-bottom:20px;
  192.   /*  flex-direction: center; */
  193.     /*float:left;*/
  194.     /*display:-ms-grid;
  195.     display:grid;
  196.     -ms-grid-columns:auto auto auto;
  197.     grid-template-columns:auto auto auto;*/
  198. }
  199. #CartCatalog .catalog-list-box-inner{
  200.     border: solid 1px #B1B2B1;
  201.     height: 100%;
  202.     border-bottom: none;
  203. }
  204. #CartCatalog .catalog-list-box-header{
  205.     background-color:#E5E5E5;
  206. }
  207. #CartCatalog .catalog-list-box-header input{
  208. margin: 15px 10px;
  209.     -webkit-transform: scale(1.4, 1.4);
  210. }
  211. #CartCatalog .catalog-list-box-header span{
  212.     font-size:13px;
  213.     font-weight: bold;
  214.     line-height:1.2;
  215.     padding: 0.3em 0;
  216.     display:inline-block;
  217.     overflow-wrap: break-word;
  218.     width:165px;
  219. }
  220. #CartCatalog .catalog-image{
  221.     padding: 20px 50px;
  222. }
  223. #CartCatalog .catalog-image img{
  224.     width:100%;
  225. }
  226. #CartCatalog .catalog-list-box-comment{
  227.     padding:5px;
  228. }
  229. #CartCatalog .catalog_link_1 a,
  230. #CartCatalog .catalog_link_2 a,
  231. #CartCatalog .catalog_link_3 a{
  232.     display: block;
  233.     width: 90%;
  234.     text-align: center;
  235.     margin: 0 auto 10px;
  236.     text-align: center;
  237.     text-decoration: none;
  238.     font-weight: bold;
  239.     line-height: 2.5;
  240.     border-radius: 6px;
  241.     font-size: 11px;
  242.     background: #177A74;
  243.     color: #fff;
  244. }
  245. #CartCatalog .catalog_link_3 a{
  246. background: #F2910E;
  247. }
  248. #CartCatalog .catalog-list-box-footer{
  249.     border: solid 1px #B1B2B1;
  250.     border-top: none;
  251.     height:110px;
  252.     width:100%;
  253. }
  254. #catalog_btn_area{
  255. margin-bottom:30px;
  256. }
  257. #catalog_btn_area button{
  258. margin-bottom:20px;
  259. }
  260. .foot_message{
  261.     margin-bottom:30px;
  262. }
  263. #footer{
  264.     background-color: #fff;
  265.     border: 0;
  266. }
  267. .ec-layoutRole__footer #footer{
  268.     margin: 0 auto;
  269.     background-color: #EEE;
  270. }
  271. #CartCatalog  #step1-top div{
  272.     padding: 2px 20px;
  273.     width:99%;
  274.     background-color:#98CACB;
  275.     line-height: 28px;
  276.     font-size:18px;
  277.     font-weight:700;
  278.     border-radius:20px;
  279.     color:#333;
  280. }
  281. @media screen and (max-width: 990px) {
  282. #contents_wrapper{
  283. width: 100%;
  284. }
  285. #CartCatalog ul.CatalogList{
  286.  margin: 0 auto 30px;
  287.  max-width:768px
  288. }
  289. }
  290. @media screen and (max-width: 768px) {
  291. #CartCatalog .otodoke{
  292.     width:90%;
  293. }
  294. #CartCatalog ul.CatalogList{
  295.  margin: 0 auto 30px;
  296.  max-width:512px;
  297. }
  298. }
  299. @media screen and (max-width: 512px) {
  300. #CartCatalog li.catalog-list-box{
  301.     width:49%;
  302. }
  303. }
  304. @media screen and (max-width: 460px) {
  305. #CartCatalog .otodoke {
  306.   padding:20px 10px;
  307. }
  308. #CartCatalog .otodoke p.title span{
  309.     display:block;
  310. }
  311. div.step img {
  312.         width: 98%;
  313.     }
  314. }
  315. {% if isMobile %}
  316.     .ec-layoutRole {
  317.         background-color: #eee;
  318.     }
  319.     .ec-layoutRole .ec-layoutRole__contents {
  320.         display: block;
  321.     }
  322.     .sp.ec-role .ec-pageHeader h1 {
  323.         border-top: 0px;
  324.     }
  325.     .ec-layoutRole #header {
  326.         display: block;
  327.         height: auto;
  328.     }
  329.     .ec-layoutRole #header #ut-sp-global-navi h1 {
  330.         font-weight: normal;
  331.         font-size: 10px;
  332.         overflow: hidden;
  333.         margin: 0px;
  334.         float: none;
  335.         padding-left: 10px;
  336.     }
  337.     .ec-layoutRole #contents_wrapper, .ec-layoutRole .ec-layoutRole__footer#footer {
  338.         width: auto;
  339.     }
  340.     .ec-layoutRole #header #logo {
  341.         height: auto;
  342.         padding: 5px 10px;
  343.         background: white;
  344.         float: none;
  345.     }
  346.     .ec-layoutRole #header #logo a {
  347.         height: auto;
  348.         width: auto;
  349.         background-image: unset;
  350.         text-indent: unset;
  351.     }
  352.     .ec-layoutRole #header #logo a img {
  353.         background: white;
  354.     }
  355.     .ec-layoutRole .ec-layoutRole__footer h2 {
  356.         padding-left: 30px;
  357.     }
  358.     .ec-layoutRole .ec-layoutRole__footer #footermenu li {
  359.         border-right-width: 0;
  360.     }
  361.     .ec-layoutRole__main#contents {
  362.         padding: 0px;
  363.         margin: 0px;
  364.     }
  365.     .ec-layoutRole__footer#footer {
  366.         margin-top: 0px;
  367.         margin: 0;
  368.         background-color: white;
  369.     }
  370.     .user_area, #pankuzu  {
  371.         display: none;
  372.     }
  373.     .sp #overlay {
  374.         visibility: hidden;
  375.         position: absolute;
  376.         left: 0;
  377.         top: 0;
  378.         width: 100%;
  379.         height: 100%;
  380.         z-index: 1000;
  381.         background-color: rgba(0, 0, 0, 0.7);
  382.     }
  383.     .sp .alert-window {
  384.         visibility: hidden;
  385.         margin-top: -68px;
  386.         margin-left: -150px;
  387.         z-index: 1001;
  388.         position: absolute;
  389.         top: 0;
  390.         left: 50%;
  391.         top: 50%;
  392.         width: 300px;
  393.     }
  394.     .sp .alert-content {
  395.         background-color: #fff;
  396.         border-radius: 7px;
  397.         border: 1px solid #eee;
  398.         border-top: 0;
  399.         padding: 10px;
  400.     }
  401.     .sp .alert-explain {
  402.         font-size: 16px;
  403.         margin:10px;
  404.         line-height:140%;
  405.         text-align: left;
  406.     }
  407.     .sp .alert-btns {
  408.         font-size: 13px;
  409.         overflow: hidden;
  410.         padding: 10px;
  411.         margin-top: 10px;
  412.     }
  413.     .sp .alert-btn-back {
  414.         display:block;
  415.         border: 1px solid #ccc;
  416.         color: #333;
  417.         text-align: center;
  418.         width: 50%;
  419.         border-radius: 5px;
  420.         float: left;
  421.         margin:0 25%;
  422.         padding: 10px 0;
  423.         background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#e3e3e3), to(#ccc));
  424.         background: -webkit-linear-gradient(to bottom, #e3e3e3, #ccc);
  425.         background: linear-gradient(to bottom, #e3e3e3, #ccc);
  426.         background: #ccc\9;
  427.     }
  428.     .sp #heading-title {
  429.         position: relative;
  430.         overflow: initial;
  431.         color: #fff;
  432.         background-color: #958064;
  433.         text-shadow: none;
  434.         padding-left: 15px;
  435.     }
  436.     .sp #heading-title:after {
  437.         content: "";
  438.         position: absolute;
  439.         display: block;
  440.         width: 0;
  441.         height: 0;
  442.         bottom: -7px;
  443.         border-top: 7px solid #958064;
  444.         border-left: 7px solid transparent;
  445.         border-right: 7px solid transparent;
  446.     }
  447.     .sp #cts-float-button {
  448.         display: none;
  449.         position: fixed;
  450.         bottom: 50px;
  451.         left: 0px;
  452.         box-sizing: border-box;
  453.         width: 100%;
  454.         margin: 0;
  455.         padding: 15px 10px;
  456.         background: rgba(0,0,0,0.8);
  457.         z-index: 99;
  458.     }
  459.     .sp #cts-float-button button {
  460.         display: block;
  461.         padding: 13px 0;
  462.         font-size: 14px;
  463.         font-weight: bold;
  464.         color: #fff;
  465.         background-image: -moz-linear-gradient(top, #fcc10f 0%, #f68408 100%);
  466.         background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fcc10f), color-stop(100%, #f68408));
  467.         background-image: -webkit-linear-gradient(top, #fcc10f 0%, #f68408 100%);
  468.         background-image: -o-linear-gradient(top, #fcc10f 0%, #f68408 100%);
  469.         background-image: -ms-linear-gradient(top, #fcc10f 0%, #f68408 100%);
  470.         background-image: linear-gradient(to bottom, #fcc10f 0%,#f68408 100%);
  471.         text-shadow: 1px 1px 0 rgba(0,0,0,0.25);
  472.         border-radius: 4px;
  473.         width: 100%;
  474.     }
  475.     .sp #catalog-list-area > * {
  476.         box-sizing: border-box;
  477.     }
  478.     .sp #catalog-list-area .catalog-category-block {
  479.         border: 1px solid #c3b5a0;
  480.         background: #fff;
  481.         margin-bottom: 20px;
  482.         font-size: 12px;
  483.         overflow: hidden;
  484.         border-radius: 8px;
  485.         padding-bottom: 4px;
  486.     }
  487.     .sp #catalog-list-area .catalog-category-label {
  488.         font-size: 15px;
  489.         font-weight: bold;
  490.         letter-spacing: .1em;
  491.         display: block;
  492.         background: #daebeb;
  493.         padding: .6em;
  494.         border-bottom: 1px solid #c3b5a0;
  495.     }
  496.     .sp #catalog-list-area .catalog-list {
  497.         display: flex;
  498.         flex-wrap: wrap;
  499.         justify-content: space-between;
  500.     }
  501.     .sp #catalog-list-area .catalog-list:after,
  502.     .sp #catalog-list-area .catalog-list > li {
  503.         width: 48%;
  504.         padding: 1%;
  505.     }
  506.     .sp #catalog-list-area .catalog-list:after {
  507.         content: '';
  508.         display: block;
  509.         order: 1;
  510.     }
  511.     .sp #catalog-list-area .catalog-list li {
  512.     }
  513.     .sp #catalog-list-area .catalog-list-box-inner {
  514.         border: solid 1px #B1B2B1;
  515.         height: 100%;
  516.         display: flex;
  517.         flex-direction: column;
  518.         justify-content: space-between;
  519.     }
  520.     .sp #catalog-list-area .catalog-list-box-inner.catalog-list-box-selected {
  521.         background: #ddfcc0;
  522.     }
  523.     .sp #catalog-list-area .catalog-list-box-header {
  524.         background: #E5E5E5;
  525.     }
  526.     .sp #catalog-list-area .catalog-list-box-header-inner {
  527.         display: flex;
  528.         align-items: center;
  529.     }
  530.     .sp #catalog-list-area .catalog-list-box-checkbox-wrap input {
  531.         margin: 14px;
  532.     }
  533.     .sp #catalog-list-area .catalog-list-box-checkbox-wrap input:disabled {
  534.         opacity: .2;
  535.     }
  536.     .sp #catalog-list-area .catalog-list-box-checkbox-wrap input.catalog-checkbox-unselectable {
  537.         opacity: 0;
  538.     }
  539.     .sp #catalog-list-area .catalog-list-box-title {
  540.         padding: .3em 0;
  541.         line-height: 1.2;
  542.         font-weight: bold;
  543.         font-size: 12px;
  544.         letter-spacing: 1px;
  545.     }
  546.     .sp #catalog-list-area .catalog-list-box-image {
  547.         padding: 10px 40px;
  548.     }
  549.     .sp #catalog-list-area .catalog-list-box-image img {
  550.         object-fit: contain;
  551.         width: 100%;
  552.         max-height: 100%;
  553.     }
  554.     .sp #catalog-list-area .catalog-list-box-comment, #catalog-list-area .catalog-list-box-footer {
  555.         padding: 0 1em;
  556.     }
  557.     .sp #catalog-list-area .catalog-list-box-comment p {
  558.         font-size: 9px;
  559.     }
  560.     .sp #catalog-list-area .catalog-list-box-comment .catalog-icon {
  561.         display: flex;
  562.         justify-content: space-between;
  563.     }
  564.     .sp #catalog-list-area .catalog-list-box-comment .catalog-icon img {
  565.         width: 32%;
  566.     }
  567.     .sp #catalog-list-area .catalog-list-box-footer {
  568.         margin: .2em 0 .8em 0;
  569.     }
  570.     .sp #catalog-list-area .catalog-list-box-link {
  571.         display: flex;
  572.         flex-direction: column;
  573.         justify-content: space-between;
  574.     }
  575.     .sp #catalog-list-area .catalog-list-box-link:after,
  576.     .sp #catalog-list-area .catalog-list-box-link:before {
  577.         content: '';
  578.         order: 1;
  579.     }
  580.     .sp #catalog-list-area .catalog-list-box-link > li .catalog-link {
  581.         display: table;
  582.         margin: .2em 0;
  583.         height: 28px;
  584.         width: 100%;
  585.     }
  586.     .sp #catalog-list-area .catalog-list-box-link a {
  587.         display: table-cell;
  588.         width: 100%;
  589.         height: 100%;
  590.         text-align: center;
  591.         position: relative;
  592.         letter-spacing: -1px;
  593.         text-decoration: none;
  594.         font-weight: bold;
  595.         line-height: 1;
  596.         border-radius: 6px;
  597.         vertical-align: middle;
  598.         font-size: 9px;
  599.     }
  600.     .sp #catalog-list-area .catalog-list-box-link a:after {
  601.         content: '▶︎';
  602.         display: block;
  603.         position: absolute;
  604.         top: 32%;
  605.         right: .8em;
  606.     }
  607.     .sp #catalog-list-area .catalog-list-box-link a.catalog-list-box-link-type-01,
  608.     .sp #catalog-list-area .catalog-list-box-link a.catalog-list-box-link-type-02 {
  609.         background: #177A74;
  610.         color: #fff;
  611.     }
  612.     .sp #catalog-list-area .catalog-list-box-link a.catalog-list-box-link-type-03 {
  613.         background: #F2910E;
  614.         color: #000;
  615.     }
  616.     .sp .catalog-box {
  617.         padding: 10px;
  618.         background-color: #eee;
  619.     }
  620.     .sp#CartCatalog .catalog-list-box-header input{
  621.         -webkit-transform: none;
  622.     }
  623.     .sp#CartCatalog .catalog-list-box-header span {
  624.         width: auto;
  625.     }
  626.     .sp#CartCatalog .catalog-list-box-footer {
  627.         border: none;
  628.         height: auto;
  629.     }
  630.     .sp#CartCatalog li.catalog-list-box {
  631.         margin-bottom: 0px;
  632.     }
  633.     .sp .cancel-btn {
  634.         margin-top: 10px;
  635.     }
  636.     .sp #btns {
  637.         border: 1px dotted #ccc;
  638.         border-left: 0;
  639.         border-right: 0;
  640.         font-size: 13px;
  641.         padding: 10px;
  642.     }
  643.     .sp #btns #btn-next {
  644.         margin: 0 auto;
  645.         line-height: 25px;
  646.         height: 50px;
  647.         font-size: 18px;
  648.         border: 1px solid #ff8f00;
  649.         width: 100%;
  650.         border-radius: 5px;
  651.         -webkit-box-sizing: border-box;
  652.         -moz-box-sizing: border-box;
  653.         -o-box-sizing: border-box;
  654.         -ms-box-sizing: border-box;
  655.         background: #ff8f00;
  656.         color: white;
  657.         font-weight: bold;
  658.     }
  659.     .sp .cancel-btn .ec-blockBtn--cancel {
  660.         border-radius: 4px;
  661.         height: 50px;
  662.         line-height: 50px;
  663.     }
  664.     .sp .opinion-box {
  665.         margin-bottom: 15px;
  666.     }
  667.     .sp .catalog-box .alert-danger {
  668.         font-size: 14px;
  669.         letter-spacing: 1px;
  670.         margin-bottom: 10px;
  671.         padding: 10px;
  672.     }
  673. {% else %}
  674.     .pc {
  675.         color: black;
  676.     }
  677.     .pc .limit-message {
  678.         margin: 20px 0px 10px 0px;
  679.         font-weight: bold;
  680.     }
  681.     .pc#CartCatalog .catalog-list-box-header span{
  682.         width: auto;
  683.     }
  684.     .pc .catalog-box {
  685.         cursor: pointer;
  686.         width: 33.3%;
  687.     }
  688.     .pc .alert {
  689.         position: relative;
  690.         padding: .75rem 1.25rem;
  691.         margin-bottom: 1rem;
  692.         border: 1px solid transparent;
  693.         border-radius: .25rem;
  694.     }
  695.     .pc .alert-danger {
  696.         color: #721c24;
  697.         background-color: #f8d7da;
  698.         border-color: #f5c6cb;
  699.         font-size: 14px;
  700.         padding: 1.25rem 1.25rem;
  701.     }
  702.     .pc button {
  703.         background-color: transparent;
  704.     }
  705.     .pc .clearfix:after {
  706.         content:" ";
  707.         display:block;
  708.         clear:both;
  709.     }
  710.     .pc .btnBack, .btnMask, .btnNext {
  711.         border: none;
  712.         cursor: pointer;
  713.     }
  714.     .pc #catalog-list-area > * {
  715.         box-sizing: border-box;
  716.     }
  717.     .pc #catalog-list-area .catalog-category-label {
  718.         font-size: 21px;
  719.         font-weight: bold;
  720.         border-bottom: 2px solid #ffb05c;
  721.         padding: 25px 0 10px 10px;
  722.         letter-spacing: .1em;
  723.         display: block;
  724.     }
  725.     .pc #catalog-list-area .catalog-list {
  726.         display: flex;
  727.         flex-wrap: wrap;
  728.         justify-content: space-between;
  729.     }
  730.     .pc #catalog-list-area .catalog-list:before,
  731.     .pc #catalog-list-area .catalog-list:after,
  732.     .pc #catalog-list-area .catalog-list > li {
  733.         width: 25%;
  734.         padding: 1%;
  735.     }
  736.     .pc #catalog-list-area .catalog-list:before,
  737.     .pc #catalog-list-area .catalog-list:after {
  738.         content: '';
  739.         display: block;
  740.         order: 1;
  741.     }
  742.     .pc #catalog-list-area .catalog-list li {
  743.     }
  744.     .pc #catalog-list-area .catalog-list-box-inner {
  745.         border: solid 1px #B1B2B1;
  746.         height: 100%;
  747.         display: flex;
  748.         flex-direction: column;
  749.         justify-content: space-between;
  750.     }
  751.     .pc #catalog-list-area .catalog-list-box-inner.catalog-list-box-selected,
  752.     .pc #catalog-list-area .catalog-list-box-inner.catalog-list-box-selected:hover {
  753.         background: #ddfcc0;
  754.     }
  755.     .pc #catalog-list-area .catalog-list-box-inner:hover {
  756.         background: #ddd;
  757.     }
  758.     .pc #catalog-list-area .catalog-list-box-header {
  759.         background: #E5E5E5;
  760.     }
  761.     .pc #catalog-list-area .catalog-list-box-header-inner {
  762.         display: flex;
  763.         align-items: center;
  764.     }
  765.     .pc #catalog-list-area .catalog-list-box-checkbox-wrap input {
  766.         margin: 14px;
  767.         -webkit-transform: scale(1.4, 1.4);
  768.     }
  769.     .pc #catalog-list-area .catalog-list-box-checkbox-wrap input.catalog-checkbox-unselectable {
  770.         opacity: 0;
  771.     }
  772.     .pc #catalog-list-area .catalog-list-box-title {
  773.         padding: .3em 0;
  774.         line-height: 1.2;
  775.         font-weight: bold;
  776.     }
  777.     .pc #catalog-list-area .catalog-list-box-image {
  778.         padding: 20px 50px;
  779.     }
  780.     .pc #catalog-list-area .catalog-list-box-image img {
  781.         object-fit: contain;
  782.         width: 100%;
  783.         max-height: 100%;
  784.     }
  785.     .pc #catalog-list-area .catalog-list-box-comment, #catalog-list-area .catalog-list-box-footer {
  786.         padding: 0 1em;
  787.     }
  788.     .pc #catalog-list-area .catalog-list-box-comment p {
  789.         font-size: 11px;
  790.         line-height: 1.4;
  791.         font-weight: normal;
  792.     }
  793.     .pc #catalog-list-area .catalog-list-box-footer {
  794.         margin: .2em 0 .8em 0;
  795.     }
  796.     .pc #catalog-list-area .catalog-list-box-link {
  797.         display: flex;
  798.         flex-direction: column;
  799.         justify-content: space-between;
  800.     }
  801.     .pc #catalog-list-area .catalog-list-box-link:after,
  802.     .pc #catalog-list-area .catalog-list-box-link:before {
  803.         content: '';
  804.         order: 1;
  805.     }
  806.     .pc #catalog-list-area .catalog-list-box-link > li .catalog-link {
  807.         display: table;
  808.         margin: .2em 0;
  809.         height: 28px;
  810.         width: 100%;
  811.     }
  812.     .pc #catalog-list-area .catalog-list-box-link a {
  813.         display: table-cell;
  814.         width: 100%;
  815.         height: 100%;
  816.         text-align: center;
  817.         position: relative;
  818.         letter-spacing: -1px;
  819.         text-decoration: none;
  820.         font-weight: bold;
  821.         line-height: 1;
  822.         border-radius: 6px;
  823.         vertical-align: middle;
  824.         font-size: 11px;
  825.     }
  826.     .pc #catalog-list-area .catalog-list-box-link a:after {
  827.         content: '▶︎';
  828.         display: block;
  829.         position: absolute;
  830.         top: 32%;
  831.         right: .8em;
  832.     }
  833.     .pc #catalog-list-area .catalog-list-box-link a.catalog-list-box-link-type-01,
  834.     .pc #catalog-list-area .catalog-list-box-link a.catalog-list-box-link-type-02 {
  835.         background: #177A74;
  836.         color: #fff;
  837.     }
  838.     .pc #catalog-list-area .catalog-list-box-link a.catalog-list-box-link-type-03 {
  839.         background: #F2910E;
  840.         color: #000;
  841.     }
  842.     .pc .catalog-box {
  843.         padding: 10px;
  844.         background-color: #eee;
  845.     }
  846.     .pc#CartCatalog .catalog-list-box-header input{
  847.         -webkit-transform: scale(1.4, 1.4);
  848.     }
  849.     .pc#CartCatalog .catalog-list-box-header span {
  850.         width: auto;
  851.     }
  852.     .pc#CartCatalog .catalog-list-box-footer {
  853.         border: none;
  854.         height: auto;
  855.     }
  856.     .pc#CartCatalog li.catalog-list-box {
  857.         margin-bottom: 0px;
  858.     }
  859.     .pc #catalog-list-area .admin-zaiko-count {
  860.         display: block;
  861.         color: red;
  862.         text-align: center;
  863.     }
  864.     .pc .catalog-bottom-box {
  865.         margin-top: 20px;
  866.     }
  867.     .pc .foot_message {
  868.         float: left;
  869.     }
  870.     .pc .catalog_btn_area {
  871.         float: right;
  872.     }
  873.     .pc#CartCatalog #catalog_btn_area {
  874.         visibility: visible;
  875.     }
  876.     
  877.     /* EC-CUBEレイアウト用 ID=29 【LM】カタログ申し込みページ用レイアウト */
  878.     #header {
  879.         width: 100%;
  880.         height: 100%;
  881.         color: black;
  882.     }
  883.     #header #logo a {
  884.         background-image: none !important;
  885.         text-indent: 0 !important;
  886.     }
  887.     .ec-layoutRole__footer#footer {
  888.         max-width: 100%;
  889.         margin: 0 auto;
  890.         border: 1px solid #D3D0C1;
  891.         background: #eee;
  892.     }
  893.     .item-count {
  894.         color: black;
  895.     }
  896.     .return-shipping {
  897.         color: black;
  898.     }
  899. {% endif %}
  900. </style>
  901. {% endblock %}
  902. {% block main %}
  903. {% if isMobile %}
  904.     <div id="CartCatalog" class="sp">
  905.         <div id="overlay"></div>
  906.         <div id="alert-window" class="alert-window">
  907.             <div class="alert-content">
  908.                 <p class="alert-explain"></p>
  909.                 <div class="alert-btns">
  910.                     <a class="alert-btn-back" onclick="closeAlertWindow();" href="javascript:void(0);">OK</a>
  911.                 </div>
  912.             </div>
  913.         </div>
  914.         <div class="title-h2">
  915.             <img class="ico-circle" src="{{ GetConfig('CFIMG_URL') }}/public_images/sp/ico_circle.png" alt="カタログ申し込み">
  916.             <h2>カタログ申し込み</h2>
  917.         </div>
  918.         <h2 id="heading-title">
  919.             <span>{{ Limit.cl_quantity_limit }}冊まで選択できます</span>
  920.         </h2>
  921.         <div class="clearfix" style="padding: 2%;">
  922.             <a href="/contact/fax/" style="float:left;width:49%;">
  923.                 <img src="{{ GetConfig('CFIMG_URL') }}/public_images/order/banner_fax_01.jpg" alt="お気軽にFAXください" style="width:100%;">
  924.             </a>
  925.             <a href="tel:0120-115-116" style="float:left;width:49%;margin-left:2%;">
  926.                 <img src="{{ GetConfig('CFIMG_URL') }}/public_images/order/banner_freedial_02.jpg" alt="お気軽にお電話ください" style="width:100%;">
  927.             </a>
  928.         </div>
  929.         <div class="catalog-box">
  930.             {% set CatalogMessage = CatalogValidation() %}
  931.             {% if  CatalogMessage %}
  932.                 <div class="alert alert-danger">
  933.                     {{ CatalogMessage }}
  934.                 </div>
  935.             {% endif %}
  936.                 {% if CatalogData is not null %}
  937.                     <form name="form" id="catalog_form" class="" method="post" action="{{ url('cart_buystep',{'cart_key':CatalogCartKey}) }}">
  938.                         <input type="hidden" name="OlToken" value="{{ OlToken('catalog') }}" />
  939.                         <div id="catalog-list-area">
  940.                             {% for LabelId,Label in CatalogCategoryLabel %}
  941.                                 {% if CatalogData[LabelId] is defined %}
  942.                                     <div class="catalog-category-block">
  943.                                         <span class="catalog-category-label">{{ Label }}</span>
  944.                                         <ul class="catalog-list">
  945.                                             {% set Catalogs = CatalogData[LabelId] %}
  946.                                             {% for CatalogId,Catalog in Catalogs %}
  947.                                                 <li class="catalog-list-box" data-catalog-id="{{ CatalogId }}" id="catalog-list-box-{{CatalogId}}">
  948.                                                     <div class="catalog-list-box-inner">
  949.                                                         <label for="CatalogList_{{Catalog.catalog_id }}">
  950.                                                             <div class="catalog-list-box-header">
  951.                                                                 <div class="catalog-list-box-header-inner">
  952.                                                                     <span class="catalog-list-box-checkbox-wrap">
  953.                                                                         <input
  954.                                                                             id="CatalogList_{{Catalog.catalog_id }}"
  955.                                                                             class="select"
  956.                                                                             type="checkbox"
  957.                                                                             name="LmOrderOption[catalog][]"
  958.                                                                             value="{{ Catalog.catalog_id }}"
  959.                                                                             {{ CatalogChecked(Catalog.catalog_id) }}
  960.                                                                         >
  961.                                                                     </span>
  962.                                                                     <span class="catalog-list-box-title">{{ Catalog.catalog_title }}</span>
  963.                                                                 </div>
  964.                                                             </div>
  965.                                                             <div class="catalog-list-box-body">
  966.                                                                 <div class="catalog-list-box-image">
  967.                                                                     <img src="https://img0.land-mark.biz/kanri_img/images/catalog_image/{{ Catalog.catalog_id }}.jpg" alert="{{ Catalog.catalog_title }}">
  968.                                                                 </div>
  969.                                                                 <div class="catalog-list-box-comment">
  970.                                                                     <p>{{ Catalog.catalog_comment|raw}}</p>
  971.                                                                 </div>
  972.                                                             </div>
  973.                                                         </label>
  974.                                                         <div class="catalog-list-box-footer">
  975.                                                             <ul class="catalog-list-box-link">
  976.                                                                 {% set CatalogNum = '01' %}
  977.                                                                 {% set CatalogKbn = Catalog.catalog_textlink_variation %}
  978.                                                                 {% set CatalogUrl = Catalog.catalog_textlink_url%}
  979.                                                                 {% if CatalogKbn %}<li>{{ include('Cart/Parts/CatalogLink.twig') }}</li>{% endif %}
  980.                                                                 {% set CatalogNum = '02' %}
  981.                                                                 {% set CatalogKbn = Catalog.catalog_textlink_variation2 %}
  982.                                                                 {% set CatalogUrl = Catalog.catalog_textlink_url2 %}
  983.                                                                 {% if CatalogKbn %}<li>{{ include('Cart/Parts/CatalogLink.twig') }}</li>{% endif %}
  984.                                                                 {% set CatalogNum = '03' %}
  985.                                                                 {% set CatalogKbn = Catalog.catalog_textlink_variation3 %}
  986.                                                                 {% set CatalogUrl = Catalog.catalog_textlink_url3 %}
  987.                                                                 {% if CatalogKbn %}<li>{{ include('Cart/Parts/CatalogLink.twig') }}</li>{% endif %}
  988.                                                             </ul>
  989.                                                         </div>
  990.                                                     </div>
  991.                                                 </li>
  992.                                             {% endfor  %}
  993.                                         </ul>
  994.                                     </div>
  995.                                 {% endif %}
  996.                             {% endfor %}
  997.                         </div>
  998.                         <h2 id="receipt">ご意見・ご希望</h2>
  999.                         <div class="content opinion-box">
  1000.                             <div class="content-wrapper">
  1001.                                 <div class="input-box-last">
  1002.                                     <div class="item-name">
  1003.                                         ご意見・ご希望&nbsp;<span class="not_required">任意</span>
  1004.                                     </div>
  1005.                                     <div id="item-content-comment">
  1006.                                         <textarea style="width: 100%; box-sizing: border-box;" name="LmOrderOption[message]" rows=5 cols=70>{{ GetLmOrderOption('message') }}</textarea>
  1007.                                     </div>
  1008.                                 </div>
  1009.                             </div>
  1010.                         </div>
  1011.                         {% if is_granted('ROLE_USER') %}
  1012.                             <div id="btns">
  1013.                                 {% if CatalogMessage is empty %}
  1014.                                     <div class="btn-wrapper" style="width:100%;">
  1015.                                         <input type="button" id="btn-next" value="確認" onclick="check_input();">
  1016.                                     </div>
  1017.                                 {% endif %}
  1018.                                 <div class="cancel-btn">
  1019.                                     <a class="ec-blockBtn--cancel" href="{{ url('remove_cart_item', {'mode': 'catalog', 'Token': OlToken('RemoveCartItme')}) }}">{{ 'front.cart_catalog.button02'|trans }}</a>
  1020.                                 </div>
  1021.                             </div>
  1022.                         {% else %}
  1023.                             <div><img src="{{ GetConfig('CFIMG_URL') }}/public_images/image_dt/btn_catalog_next.gif" style="width: 100%;" onclick="check_input();" alt="お客様情報を入力する"></div>
  1024.                             <div class="cancel-btn">
  1025.                                 <a class="ec-blockBtn--cancel" href="{{ url('remove_cart_item', {'mode': 'catalog', 'Token': OlToken('RemoveCartItme')}) }}">{{ 'front.cart_catalog.button02'|trans }}</a>
  1026.                             </div>
  1027.                         {% endif %}
  1028.                         {% if CatalogMessage is empty %}
  1029.                             <div id="cts-float-button">
  1030.                                 <button type="button" onclick="check_input();">カタログ請求手続きへ</button>
  1031.                             </div>
  1032.                         {% endif %}
  1033.                     </form>
  1034.                 {% endif %}
  1035.         </div>
  1036.     </div>
  1037. {% else %}
  1038.     <div id="CartCatalog" class="pc">
  1039.         {{ include('Cart/Parts/Step.twig') }}
  1040.         {% set CatalogMessage = CatalogValidation() %}
  1041.         {% if  CatalogMessage %}
  1042.             <div class="alert alert-danger">
  1043.                 {{ CatalogMessage }}
  1044.             </div>
  1045.         {% endif %}
  1046.         <div class="otodoke">
  1047.             {% set noukiSchedule = GetCatalogNoukiSchedule() %}
  1048.             <p class="title">{{'front.cart_catalog.message01'|trans}}<span class="red">{{ noukiSchedule | date('n月j日') }}({{noukiSchedule| date('Y/m/d')|jweek}})</span></p>
  1049.             <p class="red">{{'front.cart_catalog.message02'|trans}}</p>
  1050.             <p>{{'front.cart_catalog.message03'|trans}}</p>
  1051.         </div>
  1052.         {{ include('Shopping/alert.twig', { 'error_only': true }) }}
  1053.        <div class="">
  1054.                 {% if CatalogData is not null %}
  1055.                     <form name="form" id="form_cart" class="" method="post" action="{{ url('cart_buystep',{'cart_key':CatalogCartKey}) }}">
  1056.                         <input type="hidden" name="OlToken" value="{{ OlToken('catalog') }}" />
  1057.                         <div class="">
  1058.                             <div class="ec-cartTable">
  1059.                                 <div id="step1-top" >
  1060.                                     <img src="{{ GetConfig('CFIMG_URL') }}/public_images/sample/title_sub1.gif" alt="カタログ選択" width="990" />
  1061.                                 </div>
  1062.                                 <p class="limit-message">
  1063.                                     <strong>{{ 'front.cart_catalog.message08'|trans }}</strong><span class="red">{{ CatalogLimitMessage(Limit.cl_quantity_limit) }}</span>
  1064.                                 </p>
  1065.                                 <div id="catalog-list-area" class="efo-required efo-select" data-efo-validation='{"min":1, "max":"{{ Limit.cl_quantity_limit }}"}'>
  1066.                                     {% for LabelId,Label in CatalogCategoryLabel %}
  1067.                                         {% if CatalogData[LabelId] is defined %}
  1068.                                             <div class="catalog-category-block" id="{{ Label }}">
  1069.                                                 <span class="catalog-category-label">{{ Label }}</span>
  1070.                                                 <ul class="catalog-list">
  1071.                                                     {% set Catalogs = CatalogData[LabelId] %}
  1072.                                                     {% for CatalogId,Catalog in Catalogs %}
  1073.                                                         <li class="catalog-list-box" data-catalog-id="{{ CatalogId }}" id="catalog-list-box-{{CatalogId}}">
  1074.                                                             <div class="catalog-list-box-inner">
  1075.                                                                 <label for="CatalogList_{{Catalog.catalog_id }}">
  1076.                                                                     <div class="catalog-list-box-header">
  1077.                                                                         <div class="catalog-list-box-header-inner">
  1078.                                                                                 <span class="catalog-list-box-checkbox-wrap">
  1079.                                                                                     <input
  1080.                                                                                         id="CatalogList_{{Catalog.catalog_id }}"
  1081.                                                                                         class="select"
  1082.                                                                                         type="checkbox"
  1083.                                                                                         name="LmOrderOption[catalog][]"
  1084.                                                                                         value="{{ Catalog.catalog_id }}"
  1085.                                                                                         {{ CatalogChecked(Catalog.catalog_id) }}
  1086.                                                                                     >
  1087.                                                                                 </span>
  1088.                                                                             <span class="catalog-list-box-title">{{ Catalog.catalog_title }}</span>
  1089.                                                                         </div>
  1090.                                                                     </div>
  1091.                                                                     <div class="catalog-list-box-body">
  1092.                                                                         <div class="catalog-list-box-image">
  1093.                                                                             <img src="https://img0.land-mark.biz/kanri_img/images/catalog_image/{{ Catalog.catalog_id }}.jpg" alert="{{ Catalog.catalog_title }}">
  1094.                                                                         </div>
  1095.                                                                         <div class="catalog-list-box-comment">
  1096.                                                                             <p>{{ Catalog.catalog_comment|raw}}</p>
  1097.                                                                         </div>
  1098.                                                                     </div>
  1099.                                                                 </label>
  1100.                                                                 <div class="catalog-list-box-footer">
  1101.                                                                     <ul class="catalog-list-box-link">
  1102.                                                                         {% set CatalogNum = '01' %}
  1103.                                                                         {% set CatalogKbn = Catalog.catalog_textlink_variation %}
  1104.                                                                         {% set CatalogUrl = Catalog.catalog_textlink_url%}
  1105.                                                                         {% if CatalogKbn %}<li>{{ include('Cart/Parts/CatalogLink.twig') }}</li>{% endif %}
  1106.                                                                         {% set CatalogNum = '02' %}
  1107.                                                                         {% set CatalogKbn = Catalog.catalog_textlink_variation2 %}
  1108.                                                                         {% set CatalogUrl = Catalog.catalog_textlink_url2 %}
  1109.                                                                         {% if CatalogKbn %}<li>{{ include('Cart/Parts/CatalogLink.twig') }}</li>{% endif %}
  1110.                                                                         {% set CatalogNum = '03' %}
  1111.                                                                         {% set CatalogKbn = Catalog.catalog_textlink_variation3 %}
  1112.                                                                         {% set CatalogUrl = Catalog.catalog_textlink_url3 %}
  1113.                                                                         {% if CatalogKbn %}<li>{{ include('Cart/Parts/CatalogLink.twig') }}</li>{% endif %}
  1114.                                                                     </ul>
  1115.                                                                 </div>
  1116.                                                             </div>
  1117.                                                         </li>
  1118.                                                     {% endfor  %}
  1119.                                                 </ul>
  1120.                                             </div>
  1121.                                         {% endif %}
  1122.                                     {% endfor %}
  1123.                                 </div>
  1124.                             </div>
  1125.                         </div>
  1126.                         <div class="catalog-bottom-box clearfix">
  1127.                             <div class="foot_message">
  1128.                                 <p>{{ 'front.cart_catalog.message04'|trans|raw}}</p>
  1129.                                 <p>{{ 'front.cart_catalog.message05'|trans|raw}}</p>
  1130.                                 <p>{{ 'front.cart_catalog.message06'|trans|raw}}</p>
  1131.                             </div>
  1132.                             {% if CatalogMessage is empty %}
  1133.                                 <div class="catalog_btn_area">
  1134.                                     <button id="btn01-mask" class="btnMask" type="button">
  1135.                                         <img src="{{ GetConfig('CFIMG_URL') }}/public_images/regi/btn_kakunin_off.gif" width="205" height="45" alt="未入力、もしくは入力間違いの必須項目があります。"/>
  1136.                                     </button>
  1137.                                     <button id="btn01" class="btnNext" type="submit">
  1138.                                         <img src="{{ GetConfig('CFIMG_URL') }}/public_images/sample/btn_select.png" alt="確認画面へ進む" />
  1139.                                     </button>
  1140.                                 </div>
  1141.                             {% endif %}
  1142.                         </div>
  1143.                         <div id="catalog_btn_area" class="ec-cartRole__actions">
  1144.                             <a class="ec-blockBtn--cancel" href="{{ url('remove_cart_item', {'mode': 'catalog', 'Token': OlToken('RemoveCartItme')}) }}">{{ 'front.cart_catalog.button02'|trans }}</a>
  1145.                         </div>
  1146.                     </form>
  1147.                 {% endif %}
  1148.         </div>
  1149.     </div>
  1150. {% endif %}
  1151. {% endblock %}