.template {
  margin: 40px 0;
}
.template p {
  margin: 0 0 20px 0;
}
.template p:last-child {
  margin: 0;
}
.template img {
  width: 100%;
}

.template-img-left,
.template-img-right {
  overflow: hidden;
}
.template-img-left .img {
  float: left;
  width: 280px;
}
.template-img-left .text {
  float: right;
  width: calc(100% - 310px);
}
.template-img-right .img {
  float: right;
  width: 280px;
}
.template-img-right .text {
  float: left;
  width: calc(100% - 310px);
}

.template-col2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.template-col3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.template-col4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.template-col .col {
  text-align: center;
}

.template-table table {
  width: 100%;
}
.template-table th {
  padding: 20px;
  text-align: left;
  vertical-align: top;
}
.template-table td {
  padding: 20px;
  text-align: left;
  vertical-align: top;
}

.template-table .table1 th {
  border-bottom: var(--borderColor) 1px solid;
}
.template-table .table1 td {
  border-bottom: var(--borderColor) 1px solid;
}
.template-table .table2 th {
  background: var(--bgColor);
  border: var(--borderColor) 1px solid;
}
.template-table .table2 td {
  border: var(--borderColor) 1px solid;
}
.template-table .table3 th {
  padding: 10px;
  background: var(--bgColor);
  border: var(--borderColor) 1px solid;
}
.template-table .table3 td {
  padding: 10px;
  border: var(--borderColor) 1px solid;
}
.template-table .table4 th {
  border-right: var(--borderColor) 1px dashed;
  border-bottom: var(--borderColor) 1px dashed;
}
.template-table .table4 td {
  border-bottom: var(--borderColor) 1px dashed;
}
.template-table .table5 tr:nth-child(odd) th {
  background: var(--bgColor);
}
.template-table .table5 tr:nth-child(odd) td {
  background: var(--bgColor);
}

.template-img-left-table,
.template-img-right-table,
.template-text-left-table,
.template-text-right-table {
  overflow: hidden;
}
.template-img-left-table .img,
.template-text-left-table .text {
  float: left;
  width: 280px;
}
.template-img-right-table .img,
.template-text-right-table .text {
  float: right;
  width: 280px;
}
.template-img-left-table .table,
.template-text-left-table .table {
  float: right;
  width: calc(100% - 310px);
}
.template-img-right-table .table,
.template-text-right-table .table {
  float: left;
  width: calc(100% - 310px);
}

.template-dl-row dl dt {
  font-weight: bold;
}
.template-dl-row dl dd {
  margin: 0 0 20px 0;
}
.template-dl-row dl dd:last-child {
  margin: 0;
}

.template-dl-col dl {
  display: flex;
  flex-wrap: wrap;
}
.template-dl-col dl dt {
  width: 20%;
  font-weight: bold;
}
.template-dl-col dl dd {
  margin: 0 0 20px 0;
  padding: 0 0 0 20px;
  width: 80%;
}
.template-dl-col dl dd:last-child {
  margin: 0;
}

.template-backpattern1 {
  padding: 30px;
  background-color: var(--bgColor);
  background-image: repeating-linear-gradient(
    -45deg,
    var(--bodyBgColor) var(--bodyBgColor) 7px,
    transparent 0,
    transparent 14px
  );
  border-radius: 10px;
}
.template-backpattern2 {
  padding: 30px;
  border-top: var(--borderColor) 5px solid;
  box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.1);
}


@media screen and (max-width: 599px) {
  .template-img-left .img,
  .template-img-right .img {
    float: none;
    margin: 0 0 20px 0;
    width: 100%;
  }
  .template-img-left .text,
  .template-img-right .text {
    float: none;
    width: 100%;
  }

  .template-col4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .template-img-left-table .img,
  .template-text-left-table .text,
  .template-img-right-table .img,
  .template-text-right-table .text {
    float: none;
    margin: 0 0 20px 0;
    width: 100%;
  }
  .template-img-left-table .table,
  .template-text-left-table .table,
  .template-img-right-table .table,
  .template-text-right-table .table {
    float: none;
    width: 100%;
  }

  .template-dl-row dl dt {
    font-weight: bold;
  }
  .template-dl-row dl dd {
    margin: 0 0 20px 0;
  }
  .template-dl-row dl dd:last-child {
    margin: 0;
  }

  .template-dl-col dl {
    display: flex;
    flex-wrap: wrap;
  }
  .template-dl-col dl dt {
    width: 20%;
    font-weight: bold;
  }
  .template-dl-col dl dd {
    margin: 0 0 20px 0;
    padding: 0 0 0 20px;
    width: 80%;
  }
  .template-dl-col dl dd:last-child {
    margin: 0;
  }

  .template-backpattern1 {
    padding: 30px;
    background-color: var(--bgColor);
    background-image: repeating-linear-gradient(
      -45deg,
      var(--bodyBgColor) var(--bodyBgColor) 7px,
      transparent 0,
      transparent 14px
    );
    border-radius: 10px;
  }
  .template-backpattern2 {
    padding: 30px;
    border-top: var(--borderColor) 5px solid;
    box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.1);
  }
}

/* 管理画面用のスタイル */
.cke_editable .template {
  padding: 20px;
  background: #eee;
}
.cke_editable .template img {
  width: auto;
  max-width: 100%;
}

/* 商品検索窓のカテゴリー選択のスタイル */
.psc > ul {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}
.psc > ul > li {
  position: relative;
}
.psc > ul > li > a {
  display: block;
  height: 44px;
  line-height: 44px;
  text-align: center;
  background: var(--bgColor);
  border-radius: 1px;
}
.psc ul.child {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 120%;
  left: 0;
  padding: 15px;
  width: 100%;
  background: var(--bodyBgColor);
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
  z-index: 1;
}
.psc ul.child.open {
  visibility: visible;
  opacity: 1;
  top: 100%;
}
.psc ul.child > li > a {
  display: block;
}
.psc ul.child > li > a:before {
  content: "\f105";
  margin: 0 5px 0 0;
  font-family: FontAwesome;
}
.psc ul.child > li > ul {
  padding: 5px 5px 5px 20px;
}
.psc ul.child > li > ul > li > a {
  display: block;
  padding: 3px 0;
  font-size: 1.3rem;
}

/* ======================================
2025/2/27 added by tsuji
======================================== */

.page-content p {
    margin: 15px 0;
}

/* --------------- テーブル レスポンシブ --------------- */

.table-resp {
  font-size: 14px;
  border-collapse: separate;
  border-spacing: 5px;
}
.table-resp th {
  width: 30%;
  background: url(/html/template/cectpl/assets/img/page-title.jpg) repeat;
  box-sizing: border-box;
  color:#fff;
  padding: 15px;
  vertical-align: middle;
  font-weight: bold;
  text-align: left;
}
.table-resp td {
  background: rgba(255,255,255,0.7);
  padding: 15px;
  vertical-align: top;
  text-align: left;
}
@media all and (max-width: 767px) {
.table-resp th, .table-resp td {
    display: block;
    width: 100%;
    border-bottom: none;
  }
.table-resp tr:last-child td:last-child {
    border-bottom: 1px solid #ccc;
  }
}

/* --------------- 動画紹介 --------------- */


#page_movie .template-img-left .img {
    float: left;
    width: 540px;
}

#page_movie .template-img-left .text {
    float: right;
    width: calc(100% - 570px);
}

@media all and (max-width: 767px) {
#page_movie .template-img-left .img {
    float: left;
    width: 100%;
}

#page_movie .template-img-left .text {
    float: right;
}

#page_movie .template-img-left,
.template-img-right {
  overflow: hidden;
}

#page_movie .template-img-left .img, .template-img-right .img {
        float: none;
        margin: 0 0 20px 0;
        width: 100%;
    }

#page_movie .template-img-left .text, .template-img-right .text {
        float: none;
        width: 100%;
    }

}

/* --------------- QA --------------- */

.table_qa{
    margin: 0 0 0.8em 0;
    padding: 0;
    margin-bottom:40px;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}
/* --- スマホサイトはwidthを15%に設定 --- */
.table_qa  tr:nth-child(2n-1) th{
    padding: 10px;
    width: 6%;
    border-bottom:2px #F68002 dotted;
    vertical-align:top;
}
.table_qa th{
    padding: 10px;
    width: 6%;
    vertical-align:top;
}
.table_qa td{
    padding: 10px;
}
.table_qa tr:nth-child(2n-1) td{
	font-size:18px;
	vertical-align:middle;
	font-weight:700;
	border-bottom:2px #F68002 dotted;
}

@media all and (max-width: 767px) {

.table_qa{
    margin: 0 0 0.8em 0;
    padding: 0;
    margin-bottom:40px;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}
/* --- スマホサイトはwidthを15%に設定 --- */
.table_qa  tr:nth-child(2n-1) th{
    padding: 10px;
    width: 15%;
    border-bottom:2px #F68002 dotted;
    vertical-align:top;
}
.table_qa th{
    padding: 10px;
    width: 15%;
    vertical-align:top;
}
.table_qa td{
    padding: 10px;
}
.table_qa tr:nth-child(2n-1) td{
	font-size:18px;
	vertical-align:middle;
	font-weight:700;
	border-bottom:2px #F68002 dotted;
}

}

/* --------------- 初心者の方へ --------------- */

.box001 {
    padding: 20px 30px;
    margin: 0px 0;
    background: #326D03;
	color:#fff !important;

}

@media all and (max-width: 767px) {

#page_beginner .template-col3 {
    display: grid
;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

#page_photo .template-col2 {
    display: grid
;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}
}

/* 20250305 added by Fabo */
.mb0 { margin-bottom: 0 !important }
.mb55 { margin-bottom: 55px !important; }
.mb60 { margin-bottom: 60px !important; }
.mb65 { margin-bottom: 65px !important; }
.mb70 { margin-bottom: 70px !important; }
.mb75 { margin-bottom: 75px !important; }
.mb80 { margin-bottom: 80px !important; }
.mb85 { margin-bottom: 85px !important; }
.mb90 { margin-bottom: 90px !important; }
.mb95 { margin-bottom: 95px !important; }
.mb100 { margin-bottom: 100px !important; }

.page-content dl dt {
  font-weight: bold;
  font-size: 18px;
}
.page-content dl dd {
  margin-bottom: 10px;
}

.colorbox {
  margin-bottom: 40px;
  padding: 35px;
  background: url(/html/template/cectpl/assets/img/bg6.jpg) repeat;
}
.colorbox :first-child {
  margin-top: 0 !important;
}
.colorbox :last-child {
  margin-bottom: 0 !important;
}

.contents-flowbox-group {
  margin: 40px 0 50px;
}
.contents-flowbox {
  margin-bottom: 0;
  position: relative;
  padding: 0 0 45px 35px;
}
.contents-flowbox:last-child {
  padding-bottom: 0;
}
.contents-flowbox::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 0;
  left: 6px;
  width: 2px;
  background: #306d00;
}
.contents-flowbox::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  z-index: 10;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #306d00;
}
.contents-flowbox .template {
  margin: 0;
}
.contents-flowbox .img {
  margin: 0 0 0 25px;
  text-align: center;
}
.contents-flowbox h4 {
  margin: 0 0 10px;
  padding: 0;
  border: none;
  background: none;
  line-height: 1.6;
  font-size: 19px;
}

.contents-messagebox-group {
  margin: 70px 0;
}
.contents-messagebox {
  position: relative;
  margin-bottom: 50px;
  padding-bottom: 60px;
  z-index: 10;
}
.contents-messagebox::before {
  content: "";
  top: 100px;
  bottom: 0;
  left: -80px;
  right: -100%;
  z-index: -10;
  position: absolute;
  background: url(/html/template/cectpl/assets/img/bg6.jpg) top left repeat;
}
.contents-messagebox:nth-child(even)::before {
  right: -80px;
  left: -100%;
}
.contents-messagebox .template-text {
  padding-top: 43px;
}
.contents-messagebox .template-img-right {
  float: right;
  margin: 0 0 0 50px;
}
.contents-messagebox .template-img-left {
  float: left;
  margin: 0 50px 0 0;
}
.contents-messagebox .template-img-right,
.contents-messagebox .template-img-left {
  width: 600px;
}
.contents-messagebox .template-text {
  overflow: hidden;
}
.contents-messagebox h3 {
  margin: 0 0 55px !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  font-size: 23px !important;
}

.template-img-right .text :first-child,
.template-img-left .text :first-child {
  margin-top: 0;
}

@media screen and (max-width: 599px)  {
  .mb25, .mb30, .mb35, .mb40 { margin-bottom: 20px !important; }
  .mb45, .mb50, .mb55, .mb60, .mb65, .mb70, .mb75, .mb80, .mb85, .mb90, .mb95, .mb100 { margin-bottom: 30px !important; }

  .contents-flowbox .template-img-left .img,
  .contents-flowbox .template-img-right .img {
    float: none;
    margin: 0 0 20px 0;
    width: 100%;
  }
  .contents-flowbox .template-img-left .text,
  .contents-flowbox .template-img-right .text {
    float: none;
    width: 100%;
  }

  .contents-messagebox-group {
    margin: 30px 0;
    padding: 0 15px;
  }
  .contents-messagebox {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 25px;
    z-index: 10;
  }
  .contents-messagebox::before {
    content: "";
    top: 100px;
    bottom: 0;
    left: -25px;
    right: -25px;
    z-index: -10;
    position: absolute;
    background: url(/html/template/cectpl/assets/img/bg6.jpg) repeat;
  }
  .contents-messagebox .template-text {
    padding-top: 0;
  }
  .contents-messagebox .template-img-right {
    float: none;
    width: 100%;
    margin: 0 0 25px;
  }
  .contents-messagebox .template-img-left {
    float: none;
    width: 100%;
    margin: 0 0 25px;
  }
  .contents-messagebox .template-img-right img,
  .contents-messagebox .template-img-left img {
    width: 100%;
  }
  .contents-messagebox h3 {
    margin: 0 0 10px !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    font-size: 17px !important;
  }
  .contents-messagebox p {
    font-size: 14px;
  }
}