/*
Theme Name: Twenty Twenty-Three
Theme URI: https://wordpress.org/themes/twentytwentythree
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Three is designed to take advantage of the new design tools introduced in WordPress 6.1. With a clean, blank base as a starting point, this default theme includes ten diverse style variations created by members of the WordPress community. Whether you want to build a complex or incredibly simple website, you can do it quickly and intuitively through the bundled styles or dive into creation and full customization yourself.
Requires at least: 6.1
Tested up to: 6.7
Requires PHP: 5.6
Version: 1.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: twentytwentythree
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/


/* ========== Reset CSS ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  font-family: sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
a {
  text-decoration: none;
  color: inherit;
}
button, input, select, textarea {
  font: inherit;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  outline: none;
}
/* ========== Custom Font ========== */
@font-face {
  font-family: 'Cretina';
  src: url('./fonts/Cretina-Regular.woff2') format('woff2'),
       url('./fonts/Cretina-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cretina';
  src: url('./fonts/Cretina-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}


main{
  margin-top: 0;
}
h1{
  font-size: 18px;
}
h2{
  font-size: 28px;
  margin-bottom: 20px;
}
h3{
  font-size: 22px;
  font-weight: bold;
}
p{
  font-size: 16px;
}
body img {
	width: 100% !important;
	height: auto;
	display: block;
}
.sp_only {
  display: none;
}

/* TOPページ */
.mbox,
#no5 .bg,
#no13 .bg{
  position: relative;
  overflow: hidden;
}
.mbox::before{
  content: "";
  display: block;
  width: 600px;
  height: 467px;
  background-image: url(images/bg1.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: -220px;
  right: -200px;
  z-index: -2;
}
.mbox::after{
  content: "";
  display: block;
  width: 600px;
  height: 467px;
  background-image: url(images/bg2.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  bottom: -180px;
  left: -170px;
  z-index: -2;
  transform: rotate(20deg);
    -moz-transform: rotate(20deg);
    -webkit-transform: rotate(20deg);
}
#no5 .bg::before{
  content: "";
  display: block;
  width: 500px;
  height: 390px;
  background-image: url(images/bg3.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 28px;
  left: -200px;
  z-index: -2;
  transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
}
#no13 .bg::before{
  content: "";
  display: block;
  width: 500px;
  height: 390px;
  background-image: url(images/bg3.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 28px;
  right: -200px;
  z-index: -2;
  transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
}
.tbox{
  text-align: center;
}
.tbox h2 {
  position: relative;
  height: 110px; /* 高さは必要 */
  text-align: center; /* テキスト中央寄せ（必要なら） */
  line-height: 1;
}
.tbox h2::before {
  content: "";
  display: block;
  width: 180px;
  height: 180px;
  background-image: url('images/heart.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1; /* テキストの後ろに配置 */
}
.tbox h2 span{
  font-family: 'Cretina', sans-serif;
  display: block;
  color: #db5275;
  font-weight: bold;
  font-size: 50px;
  transform: rotate(-8deg);
    -moz-transform: rotate(-8deg);
    -webkit-transform: rotate(-8deg);
}
section.nobox{
  margin: 140px auto;
}
section.nobox .bg{
  text-align: center;
  padding-top: 40px;
}
section.nobox .img{
  width: 80%;
  margin: 0 auto;
}
section.nobox img{
  box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.35);
  max-width: 1200px;
}

/* フッター */
.fbox p{
  background: #90bcce;
  padding: 20px 0;
  font-size: 12px;
  text-align: center;
  color: #fff;
}
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  z-index: 9999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top img {
  width: 60px !important;
  height: auto;
  transition: opacity 0.3s ease;
}

.back-to-top img:hover {
  opacity: 0.8;
}


/* 各ページ */
.sboox h2{
  max-width: 1000px;
  margin: 0 auto 20px;
  font-size: 22px;
}
.sboox h2 span{
  background: #90bcce;
  padding: 5px 10px;
  margin-right: 20px;
  color: #fff;
  display: inline-block;
  margin-bottom: 10px;
}
.txt{
  background: #fff;
  border: 2px solid #555;
  margin: 80px auto;
  padding: 20px;
  max-width: 1000px;
  width: 100%;
}
.item{
  max-width: 1000px;
  width: 100%;
  margin: 0 auto 50px;
  padding: 0 20px;
}
.item-number{
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
}
.heart span{
  display: inline-block; /* 背景を効かせるために必要 */
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-image: url('/wp-content/themes/twentytwentythree/images/heart.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #fff; /* 数字の色 */
  font-weight: bold;
  margin-right: 8px; /* 数字と後続テキストの間に余白 */
}
.fukidashi-01-02 {
  font-size: 14px;
  color: #90bcce;
  position: relative;
  width: fit-content;
  padding: 0 10px 5px;
  border-bottom: 2px solid #90bcce;
  margin-bottom: 15px;
}
.fukidashi-01-02::after {
  content: "";
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  width: 20px;
  height: 2px;
  box-sizing: border-box;
  background-color: #90bcce;
  box-shadow: 0 2px 0 #ffffff, 0 -2px 0 #ffffff;
  rotate: 50deg;
  translate: -25%;
}
.txt2{
  padding: 0 20px 80px;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}
.txt2 img{
  display: inline-block;
  width: 30%!important;
  vertical-align:  middle; 
}
.balloon2-left {
  position: relative;
  display: inline-block;
  padding: 14px 15px;
  font-size: 16px;
  background: #FFF;
  border: solid 3px #555;
  box-sizing: border-box;
  width: 67%;
  vertical-align:  middle; 
}
.balloon2-left:before {
  content: "";
  position: absolute;
  top: 50%;
  left: -24px;
  margin-top: -12px;
  border: 12px solid transparent;
  border-right: 12px solid #FFF;
  z-index: 2;
}
.balloon2-left:after {
  content: "";
  position: absolute;
  top: 50%;
  left: -30px;
  margin-top: -14px;
  border: 14px solid transparent;
  border-right: 14px solid #555;
  z-index: 1;
}
.balloon2-left p {
  margin: 0;
  padding: 0;
}
.heart2>span{
  width: 60px;
  height: 60px;
  line-height: 0;
}
span.step{
  font-family: 'Cretina', sans-serif;
  display: inline-block;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  transform: rotate(-8deg);
    -moz-transform: rotate(-8deg);
    -webkit-transform: rotate(-8deg);
  background-image: none;
  margin-right: 0;
  line-height: 3;
}
span.technique{
  font-family: 'Cretina', sans-serif;
  display: inline-block;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  transform: rotate(-8deg);
    -moz-transform: rotate(-8deg);
    -webkit-transform: rotate(-8deg);
  background-image: none;
  margin-right: 0;
  line-height: 3.5;
  width: auto;
}

/* 枠 */
.txt .cimg,
.box27 .cimg{
  width: 20px!important;
  display: inline;
}
.kigou{
  width: 20px!important;
  display: inline;
}
.box27 {
  position: relative;
  margin: 2em auto 50px;
  padding: 1em 1em;
  border: solid 3px #90bcce;
  max-width: 1000px;
  width: 100%;
}
.box27 .box-title {
  position: absolute;
  display: inline-block;
  top: -27px;
  left: -3px;
  padding: 0 9px;
  height: 25px;
  line-height: 25px;
  font-size: 17px;
  background: #90bcce;
  color: #ffffff;
  font-weight: bold;
  border-radius: 5px 5px 0 0;
}
.box27 p {
  margin: 0; 
  padding: 0;
}
.box27 span{
  font-weight: bold;
  vertical-align: bottom;
  display: block;
}
.box27 span.indent{
  display: inline-block;
  padding-left: 1em;
  text-indent: -1em;
  font-weight: normal;
}
.box28{
  border: solid 3px #db5275;
}
.box28 .box-title{
  background: #db5275;
}
.box28 p{
  margin-bottom: 10px;
}
.box28 p:last-child{
  margin-bottom: 0;;
}
.box27 img{
  width: 30px!important;
  display: inline-block;
  vertical-align: bottom;
}

/* チェックシート */
.check{
  max-width: 1000px;
  width: 100%;
  padding: 80px 2% 50px;
  margin: 180px auto 120px;
  position: relative;
  border: 2px solid #ddd;
  border-radius: 30px;
}
.check img.checksheet{
  max-width: 500px;
  position: absolute;
  top: -70px;
  left: 0;
  right: 0;
  margin: auto;
}
input[type=checkbox] {
  display: none;
}
.cbox {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}
.checkbox03 {
  display: inline-block;
  padding: 20px 0 0 40px;
  position: relative;
  font-size: 18px;
  line-height: 1.6;
}
.checkbox03::before {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  content: '';
  display: block;
  height: 25px;
  left: 5px;
  position: absolute;
  top: 20px;
  width: 25px;
}
.checkbox03::after {
  border-right: 6px solid #db5275;
  border-bottom: 6px solid #db5275;
  content: '';
  display: block;
  height: 28px;
  left: 15px;
  position: absolute;
  top: 8px;
  opacity: 0;
  transform: rotate(45deg) translate3d(0, 2px, 0) scale3d(.7, .7, 1);
  transition: transform .2s ease-in-out, opacity .2s ease-in-out;
  width: 14px;
}
input[type=checkbox]:checked + .checkbox03::before {
  border-color: #666;
}
input[type=checkbox]:checked + .checkbox03::after {
  opacity: 1;
  transform: rotate(45deg) scale3d(1,1,1);
}
#checkbox-count {
  margin-top: 1em;
  font-weight: bold;
  font-size: 2em;
  vertical-align: text-bottom;
}
#checkbox-count img{
  width: 40px!important;
  display: inline;
  vertical-align: text-bottom;
}
.cbox input[type="checkbox"] {
  vertical-align: top;
  margin-right: 8px;
}

@media screen and (max-width: 480px)  {
    h1{
      font-size: 16px;
    }
    h2{
      font-size: 20px;
      margin-bottom: 20px;
    }
    h3{
      font-size: 18px;
      font-weight: bold;
    }
    p{
      font-size: 14px;
    }
    .pc_only {
      display: none;
    }
    .sp_only {
      display: block;
    }

    /* TOPページ */
    .mbox::before{
      width: 370px;
      height: 290px;
      top: -130px;
      right: -140px;
    }
    .mbox::after{
      width: 350px;
      height: 200px;
      left: -105px;
      bottom: -65px;
    }
    #no5 .bg,
    #no13 .bg{
      padding: 30px 0;
    }
    #no5 .bg::before{
      width: 265px;
      height: 230px;
      top: 25px;
      left: -165px;
    }
    #no13 .bg::before{
      width: 265px;
      height: 230px;
      top: 25px;
      right: -165px;
    }
    section.nobox{
      margin: 100px auto;
    }
    #no5,
    #no13{
      margin-bottom: 70px;
    }
    #no6,
    #no14{
      margin-top: 30px;
    }
    section.nobox .img{
      width: 95%;
    }
    .tbox h2{
      height: 85px;
    }
    .tbox h2::before{
      width: 135px;
      height: 135px;
      top: -43px;
    }
    .tbox h2 span{
      font-size: 35px;
    }
    section.nobox .bg{
      padding-top: 30px;
    }


    /* 各ページ */
    .txt{
      padding: 20px 2%;
      width: 96%;
      margin: 50px auto;
    }
    .item{
      padding: 0 2%;
    }
    .txt2{
      padding: 0 2% 50px;
    }
    .txt2 img{
      display: block;
      width: 15%;
      margin: 0 auto 20px;
    }
    .balloon2-left{
      width: 100%;
    }
    .balloon2-left:before {
      top: -24px;
      left: 50%;
      margin-left: -15px;
      margin-top: 0;
      border: 12px solid transparent;
      border-bottom: 12px solid #FFF;
    }
    .balloon2-left:after {
      top: -30px;
      left: 50%;
      margin-left: -17px;
      margin-top: 0;
      border: 14px solid transparent;
      border-bottom: 14px solid #555;
    }

    /* 枠 */
    .box27{
      margin: 2em 2% 50px;
      width: 96%;
    }
    .box27 img{
      width: 20px!important;
    }

    /* チェックシート */
    .check img.checksheet{
      width: 70% !important;
      top: -40px;
    }
    .check{
      padding: 50px 4% 30px;
      margin: 80px 2%;
      width: 96%;
    }
    .checkbox03{
      font-size: 15px;
    }
    #checkbox-count{
      font-size: 1.4em;
    }
    #checkbox-count img{
      width: 25px !important;
    }

    /* フッター */
    .fbox p{
      font-size: 10px;
    }
}