/* サブページで、テンプレートで対応しきれないスタイルをこちらに記入します。ASのみ書き込み可能 */
/*@media  (min-width: 1280px) {
html#index-type2 body {
  background: url(../images/05doodle-tile/bg-takara.webp)repeat;
  background-size: 100% cover;
}
}

html#index-type2-1 body {
  background: url(../images/05doodle-tile/body-bg.png) repeat-y;
  background-size: 100% cover;
}

html#index-type2-2 body {
background: url(../images/05doodle-tile/body2-bg.png) repeat-y;
  background-size: 100% cover;
}*/

.bg-white {
  width:100%;
  max-width:1280px;
  background: #fff;
  margin:0 auto;
  margin-top:0;
  padding-bottom:3em;
}

#intro{
  margin-top: 0rem;
  padding-top:2em;
}

/*=========================
#index-type2
作成ツール/サブページタイトル部分
=========================*/
/* ヘッダー画像 */
.top-image{
/*   position:relative;*/
   width:100%;
   height:15vw;
   min-height:200px;
   max-height:400px;
   background-color:#FFFFFF;
}

.top-image {
  position: static;
   	/*width:100%;
   height:15vw;
   min-height:200px;
   max-height:400px;*/
   height:auto;
   min-height:auto;
     max-height:auto;
  display:flex;
  justify-content: left;
  align-items: center;
 background: #fff;
 background: url(../images/05doodle-tile/top-image-bg.jpg) repeat-x;
 background-size: 50% 50% / contain;
}

.top-image h2 {
	/*position:absolute;*/
  position: static;
	/*color:#2e3192;*/
  color:#262626;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 3;
  padding:0 auto;
  padding-top:.5em;
  padding-bottom:.5em;
}

/*.top-image img{
   width:100%;
   height:15vw;
   min-height:200px;
   max-height:400px;
   object-fit:cover;
}*/

.top-image h2 > img {
  top:8px;
  left:0%;
	width:150px;
  height:60%;
  min-height:75px;
   max-height:150px;
	margin-top:1rem;
  margin-bottom:1rem;
  object-fit: contain;
}

.top-image h2 span.heading {
  font-size: clamp(0.69rem, 0.552vw + 0.56rem, 1.00rem);
  letter-spacing: .05rem;
  line-height:2.5;
  padding-bottom:.5em;
}

.top-image h2 span.jp {
	font-size: clamp(2.4rem, calc(2.2rem + 0.625vw), 2.9rem);
	line-height:1.0;
  display: block;
  /*color:#2e3192;*/
  color:#262626;
}

.top-image h2 span.en {
	font-size: 1.2rem;
	font-weight:normal;
	letter-spacing:0.1rem;
	padding-top:0;
  padding-bottom:5em;
  color:#2e3192;
}


[id^="index-type2-"] .top-image h2 div{
  display:block;
  line-height:1.0;
  text-align: left;
  padding-left:1em;
}


/*=========================
ぱんくず
=========================*/
.breadcrumb {
  padding: 0.05em 0;
  padding-left: 2em;
  background: #ececec;
}

/*=========================
contents
=========================*/

[class^="list-design"] h3, .container#external-link h3 {
  /*background-image: url(../images/05doodle-tile/saya-piece-g.jpg);
  background-repeat: repeat;
  background-color: #badd7f;*/
  position:relative;
  color:#262626;
  /*font-size:1.8em;
  font-weight:400;*/
  font-size:2.2em;
  font-weight:900;
  /*padding: .5em auto 0 40px;*/
  padding:1rem 2rem;
  z-index:3;
  background: none;
  letter-spacing: .05rem;
  background: #d3da9a;
}

[class^="list-design"] h3::before {
  content: " ";
  position: absolute;
  bottom:-8px;
  left:0;
  transform: translateY(-50%) translateX(-50%);
  -webkit-transform: translateY(-50%) translateX(-50%);
  margin: auto;
  width:34px;
  height:34px;
  /*background:url(../images/05doodle-tile/h3before.jpg);*/
  background-repeat: no-repeat;
  background-size: contain;
}

.container#external-link h3 {
  background: none;
  color:#262626;
  padding-bottom:0em;
  border-bottom:solid 2px var(--accentColor);
}

.list-design4.column2 > .contents-wrap, .list-design4.column2.outer-left > .contents-wrap {
  /*padding-top:2em;*/
  display: flex;
  justify-content: space-between;
  padding:0;
}


.list-design4.column2 > .contents-wrap .item{
  overflow: hidden;
  width: calc(100% / 2 - 4rem);
  text-align: center;
  aspect-ratio: normal;
  border:solid 2px #dddddd;
  background: #fff;
  border-radius: 6px;
  display: flex;/*はじめるボタンを下揃え*/
  flex-direction: column
}

@media (max-width: 999px) {
  .list-design4.column2 > .contents-wrap .item{
  width: calc(100% / 2 - 1rem);
  }
}

@media  (max-width: 767.99px) {
  .list-design4.column2 > .contents-wrap {
  display:block;
}

  .list-design4.column2 > .contents-wrap .item{
  width: calc(100% - 2rem);
  margin:1.5rem;
  }
}

.list-design4 .item img{
  /*object-fit: cover;
  object-position:50% 0;
  width: 100%;
  height: 30%;
  min-height: 240px;
  max-height: 320px;*/
  height:auto;
  min-height: 120px;
  max-height: 250px;
}

.list-design4#cont1 .item img{
  object-fit: contain;
}

.list-design4#cont1 .item h4 {
  margin-top:1em;
  padding-bottom:0;
  font-size:1.4em;
}

.list-design4 .item h4 a {
  font-weight:bold;
  font-size:1.8rem;
  color:#262626;
}

.container{
  padding: 0;
  margin: 0 auto;
}

.multiple-link a.arrow{
  margin:0 auto;
  text-align: center;
  margin-top: auto
}

#intro > .intro-container{
  display: block;
}

#intro > .intro-container > .intro-txt{
  padding: .5rem ;
}

/*使い方ボタン*/
 a.use {
  display:inline-block;
  width:auto;
  height:auto;
  padding:0.75em 1em;
  line-height:1.5;
  font-size:1rem;
  text-align: left;
  background:#fff;
  color:#262626;
  text-decoration:none;
  border:solid 2px #262626;
  margin:1rem 0 0 auto;
  margin-top:1rem;
  width:10em;
  border-radius: 6px;
}

#tool1 #drawing-area {
 /* width:80%;*/
 width:100%;
  margin:0 auto;
  padding:3%;
  background: #dadada;
}

#tool1 #drawing-area .inner {
  width:80%;
  margin:0 auto;
}

table {
  width:100%;
  background: #fff;
  margin:.5rem auto;
}

#drawing-area table,#drawing-area td{
    border-collapse: collapse;
    border:1px solid #63e7f8;
    height:150px;
    }

.list-design6 {
  margin-top:0;
}

.list-design6 .contents-wrap {
  display: flex;
  flex-wrap: wrap;
}

#tool1 .tool-box {
  width:100%;
  margin:2rem auto;
  background: #2d6797;
  background: #555;
  padding:.5rem 2%;
  display:flex;
  flex-wrap:wrap;
  align-items: center;
  justify-content: center;
}

.tool-box > p {
  font-size:1.2em;
  text-align: left;
  font-weight:bold;
  color:#fff;
  text-decoration: underline;
  width:100%;

}

#tool1 .tool-box .inner-box {
  width:auto;
  display:flex;
  flex-direction: column;
  flex-wrap:wrap;
}

.ctl-btn-wrap {
  display:flex;
  flex-wrap:nowrap;
  padding-top:1em;
  padding-bottom:1.5rem;
  justify-content: flex-start;
  align-items: center;
  gap:1rem;
  border-bottom:dotted 1px #bbbbbb;
  margin-bottom:1rem;
}

.ctl-btn-wrap:last-child {
  border-bottom:none;
}

.center {
  display: flex;
  justify-content: center;
}

.ctl-btn-wrap input[type="submit"] {
  border:solid 1px #9d9fa5;
  background: #fff;
  padding:1.5%;
  font-size:.9em;
  border-radius: .25rem;
  padding: 0.375em 0.75em;
}

.item-ttl{
  display: inline-block;
  font-size:1.0em;
  font-weight:bold;
  font-weight:500;
  padding-right:.5em;
  margin-left:1rem;
  color:#fff;
  align-items: center;
}

.item-ttl.sub {
  font-size:.9em;
}

  label.bg {
    color: #262626;
    padding: 0 0 0  0.75em;
    /*background: #a7c2d8;*/
    background: #d6d6d6;
    transform: translateZ(0) translateX(0);
    transition: all 0.3s ease-in;
    transition-delay: 0.2s;
    margin-right:1rem;
    outline: none;
    font-size:.9em;
  }

input[type="number"] {
      outline: none;
      padding: 0.375em 0.75em;
      margin-left:1rem;
      width:6em;
}


input[type="number"]#pen-size, input[type="number"]#side, input[type="number"]#vertical {
  width:6em;
}

input[type="file"] {
  color:#262626;
  font-size:.9em;
  cursor: pointer;
  background: #fff;
}

input[type="file"].file-button {
  line-height:2.5;
}

/*ファイル選択部分*/
::file-selector-button,
::-webkit-file-upload-button {
  font-size:.9em;
  /*background:#a7c2d8;*/
  background:#262626;
  color: #fff;
  border: none;
  cursor: pointer;
  border-right: 1px solid #9d9fa5;
  line-height:3;
}

/*サイズ変更等*/
.tool-box input[type="submit"]{
  font-size:.9rem;
  color: #262626;
  cursor: pointer;
  border: 1px solid #9d9fa5;
  border-radius: 8px;
  padding: .25rem .8rem;
  background: #ececec;
}

/*ボタン*/
input[type="button"], input[type="reset"] {
  font-size:.9rem;
  color: #262626;
  cursor: pointer;
  border: 1px solid #9d9fa5;
  border-radius: 8px;
  padding: .25rem .8rem;
  background: #ececec;
}

input[type="button"] {
  margin-left:1rem;
}

input[type="color"] {
  border-radius: 0%;
}

/*======tool2======*/
 #tool2 .contents-wrap {
  padding:0;
  width:100%;
  margin:0 auto;
  gap:2%;
  justify-content: flex-start;
  align-items: flex-start;
  background: #555;
}

#tool2 #drawing-area {
  width:65%;
    padding:5%;
  background: #dadada;
}

#tool2 p.item-ttl {
  font-size:1.2em;
    text-decoration: none;
}


#tool2 table {
  width:100%;
  background: #fff;
}

#tool2 #drawing-area table,#drawing-area td{
  border:solid 2px #ccc;
}

#tool2 .tool-box {
  display: block;
  width:33%;
  padding:2rem;
  margin:0.5rem auto 2rem auto;
  background: transparent;
  border-radius: 8px;
  padding:3%;
  display:flex;
  flex-wrap:wrap;
  align-items: center;
}

@media (max-width: 999px) {
  #tool2 .contents-wrap {
    display: block;
  }
  #tool2 #drawing-area {
  width:90%;
  margin:0 auto;
}
#tool2 .tool-box {
    width:90%;
  margin:0 auto;
}
}

#tool2 .piece-box {
  display:block;
  width:30%;
  aspect-ratio: 1 / 1 ;
  border:solid 1px #333;
  margin:0 auto;
  background: #fff;
}

#tool2 .ctl-btn-wrap {
  width:100%;
  display: flex;
  justify-content: center;
  padding-top:.5rem;
}

#tool2 .ctl-btn-block {
    width:100%;
  display: block;
  padding-top:.5rem;
}

.checkbox-type {
  display: block;
  position: relative;
  margin: 1em;
  padding-left: 28px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  input {
    display: none;
  }
}
/*小本画像をプレビューtest*/
.preview-box {
  display:block;
  width:40%;
  aspect-ratio: 1 / 1 ;
  border:solid 1px #333;
  margin:1rem auto;
  background: #fff;
  margin-bottom:1rem;
}
#tool2 img#kohon-preview {
  display:block;
  width:100%;
  object-fit:cover;
}

input[type="file"]#kohon-input {
  margin-left:2rem;
  margin-bottom:2rem;
  font-size:.9em;
  cursor: pointer;
}

/* □ */
.checkmark {
  position: absolute;
  top: 0; /* 上からの位置 */
  left: 0;
  height: 20px; /* 幅 */
  width: 20px; /* 幅 */
  border: solid 2px #d4dae2; /* 線 */
  border-radius: 4px;
  box-sizing: border-box;
  /* ✓ */
  &:after {
    content: "";
    position: absolute;
    border: solid #FFF;
    border-width: 0 2px 2px 0;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 10px;
    transform: rotate(45deg);
    opacity: 0; /* 透明にしておく */
  }
}


/* チェックが入ったとき */
.checkbox-type {
  /* □ */
  input:checked + .checkmark {
    background: #2e80ff;
    border-color: #2e80ff;
  }
  /* ✓ */
  input:checked + .checkmark:after {
    opacity: 1;
  }
}

/*===小紋へ小本へボタン===*/
.btn-other {
  border:solid 2px var(--accentColor);
  color: var(--accentColor);
  background: #fff;
  border: none;
  margin-top:2rem;
  padding: 16px 40px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  transition: all 0.3s ease;
}

.btn-other:hover {
  background:rgba(111, 122, 12, .5);
  color:#fff;
   transition: all 0.3s ease;
}



/*参考リンク*/
#external-link a:not(.bnr){
  position: relative;
  color:#262626;
}
#external-link a:not(.bnr)::after{
 /* background: url("../images/common/link_icon.png");*/
  background:none;
}

#external-link a.gaibu {
  position:relative;
}

#external-link a.gaibu::after{
   position: absolute;
  top: 2px;
  right: -1.2em;
  width: 16px;
  height: 16px;
  content: "";
  background: url("../images/common/link_icon.png");
}


/* footer
================================================ */
footer{
  /*margin-top: 2rem;*/
  margin-top:0;
  font-size:1.0rem;
    background: #2e3192;
    background: var(--accentColor);
}
footer a{
  text-decoration: none;
  color:#fff;
}

/* footer-nav
---------------------------------------------- */
#footer-nav {
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin: 0 auto;
  border-top: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;

}
#footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}
#footer-nav ul li {
  display: flex;
  justify-content: flex-start;
  width: 10em;
  margin: 0.5rem 1rem;
  color:#fff;
}
#footer-nav ul li::before {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 10px;
  content: "";
  background: url("../images/common/arrow.svg");
  background-repeat: no-repeat;
  background-size: contain;
}

#footer-nav ul li:has(.disabled) {
  display: none;
  pointer-events: none;
}

      /* このページ専用：工程とツールの関係を視覚化 */
      .process-lead,
      .tool-lead {
        margin: 0 0 1.25rem;
      }

      .process-flow {
        display: flex;
        align-items: stretch;
        justify-content: center;
        gap: 12px;
        margin: 1.5rem 0;
      }

      .process-step {
        flex: 1 1 0;
        max-width: 260px;
        padding: 18px 16px;
        border: 1px solid #cfd69d;
        background: #f8faea;
        text-align: center;
      }

      .process-step strong {
        display: block;
        margin-bottom: 6px;
        font-size: 1.1em;
      }

      .process-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 32px;
        font-size: 1.8rem;
        color: #6d7a12;
      }

      .process-note {
        margin-top: 1rem;
      }

      .process-detail {
        margin-top: 1.25rem;
        padding-top: 1rem;
        border-top: 1px solid #ddd;
      }

      .process-detail summary {
        cursor: pointer;
        font-weight: bold;
      }

      .tool-guide {
        margin: 0 0 1.5rem;
        padding: 14px 16px;
        background: #f6f6f6;
      }

      .step-label {
        display: inline-block;
        margin-bottom: 8px;
        padding: 4px 10px;
        border-radius: 999px;
        background: #6d7a12;
        color: #fff;
        font-size: 0.9rem;
        font-weight: bold;
      }

      .tool-step-title {
        margin: 0 0 8px;
        font-weight: bold;
        text-align: center;
      }

      .tool-flow-wrap {
        position: relative;
        display: flex !important;
        align-items: stretch;
        gap: 20px;
      }

      .tool-flow-wrap .item {
        flex: 1 1 0;
        width: auto !important;
        margin: 0 !important;
      }

      .tool-flow-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        min-width: 44px;
        font-size: 2rem;
        color: #6d7a12;
      }

      .tool-note {
        margin-top: 0.75rem;
        font-size: 0.95em;
      }

      .usage-note {
        margin-top: 1.25rem;
        padding: 14px 16px;
        border-left: 4px solid #cfd69d;
        background: #fafafa;
        font-size: 0.95em;
      }

      .usage-note-title {
        display: block;
        margin-bottom: 0.45rem;
        font-size: 1.12em;
        font-weight: 700;
        border-bottom: 2px solid #cfd69d;
        padding-bottom: 0.3rem;
      }

      @media (max-width: 767px) {
        .process-flow {
          flex-direction: column;
          align-items: stretch;
        }

        .process-step {
          max-width: none;
        }

        .process-arrow {
          transform: rotate(90deg);
          min-height: 28px;
        }

        /* デザイン支援ツール：スマホでは1カラムで縦に並べる */
        #cont1 .contents-wrap.tool-flow-wrap {
          display: flex !important;
          flex-direction: column !important;
          align-items: stretch !important;
          gap: 16px !important;
          width: 100% !important;
          height: auto !important;
          overflow: visible !important;
        }

        #cont1 .tool-flow-wrap .item {
          display: block !important;
          flex: none !important;
          width: 100% !important;
          min-width: 0 !important;
          max-width: none !important;
          height: auto !important;
          min-height: 0 !important;
          margin: 0 !important;
          box-sizing: border-box;
          overflow: visible !important;
        }

        #cont1 .tool-flow-wrap .item > div,
        #cont1 .tool-flow-wrap .item p,
        #cont1 .tool-flow-wrap .item h4 {
          width: 100% !important;
          max-width: 100% !important;
          box-sizing: border-box;
        }

        #cont1 .tool-flow-wrap .item img {
          display: block;
          width: auto;
          max-width: 100%;
          height: auto;
          margin-left: auto;
          margin-right: auto;
        }

        #cont1 .tool-flow-wrap .item .arrow {
          display: block !important;
          width: min(100%, 240px) !important;
          max-width: 240px;
          margin: 1rem auto 0 !important;
          box-sizing: border-box;
        }

        /* 「はじめる」ボタンとカード下端の間に余白を確保 */
        #cont1 .tool-flow-wrap .item {
          padding-bottom: 16px !important;
          position: static !important;
        }

        .tool-flow-arrow {
          width: 100% !important;
          min-width: 0;
          min-height: 36px;
          height: auto !important;
          transform: rotate(90deg);
        }
      }

/* 小紋と小本：関連資料へのリンク */
.related-link,
.tool-guide a {
  color: #59640f;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.related-link::after {
  content: " →";
  text-decoration: none;
  display: inline-block;
  margin-left: 0.2em;
}

.related-link:hover,
.tool-guide a:hover {
  color: #3f4809;
}




      .guide-page-title {
        max-width: 1100px;
        margin: 0 auto;
        padding: 28px 20px 22px;
        border-bottom: 3px solid #cfd69d;
      }

      .guide-page-title .guide-kicker {
        display: block;
        margin-bottom: 6px;
        color: #6d7a12;
        font-size: 0.95rem;
        font-weight: 700;
      }

      .guide-page-title h2 {
        margin: 0;
        font-size: clamp(1.55rem, 3vw, 2.15rem);
        line-height: 1.35;
      }

      .guide-content {
        max-width: 960px;
        margin: 0 auto;
        padding: 34px 20px 56px;
      }

      .guide-intro {
        margin: 0 0 34px;
        padding-bottom: 28px;
        border-bottom: 1px solid #ddd;
        line-height: 1.9;
      }

      .guide-section {
        margin-top: 36px;
      }

      .guide-section h3 {
        margin: 0 0 18px;
        padding: 0 0 8px 12px;
        border-left: 5px solid #cfd69d;
        border-bottom: 1px solid #ddd;
        background: transparent;
        font-size: 1.35rem;
        line-height: 1.45;
      }

      .guide-section p {
        margin: 0 0 1em;
        line-height: 1.9;
      }

      .guide-point {
        margin: 22px 0;
        padding: 16px 18px;
        border: 1px solid #dfe3bd;
        background: #fbfced;
        line-height: 1.8;
      }

      .guide-point strong {
        display: block;
        margin-bottom: 6px;
        color: #4f590b;
        font-size: 1.05rem;
      }



      @media (max-width: 767px) {
        .guide-page-title {
          padding: 22px 18px 18px;
        }

        .guide-content {
          padding: 26px 18px 44px;
        }

        .guide-section {
          margin-top: 30px;
        }

        .guide-section h3 {
          font-size: 1.2rem;
        }

        .guide-point, {
          padding: 14px 15px;
        }
      }


.usage-guide-link {
  margin-top: 1rem;
}

.usage-guide-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.65em 1em;
  border: 2px solid #6d7a12;
  background: #fff;
  color: #4f590b;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.5;
}

.usage-guide-link a:hover,
.usage-guide-link a:focus-visible {
  background: #f8faea;
  text-decoration: underline;
}

.usage-guide-link a:focus-visible {
  outline: 3px solid #333;
  outline-offset: 3px;
}

.guide-point-title {
  display: block;
  margin-bottom: 0.35em;
  font-size: 1.05em;
  font-weight: 700;
  color: #4f590b;
}


/* 段落間を詰める */
.guide-point p {
  margin: 0 0 0.25em;
  line-height: 1.6;
}

.guide-point p:last-child {
  margin-bottom: 0;
}

/* CC BY公式ページへのリンク */
.guide-point .license-link {
  display: inline-block;
  margin: 0 0.15em;
  padding: 0.08em 0.4em;
  border: 1px solid #6d7a12;
  border-radius: 3px;
  background: #fff;
  color: #4f590b;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.guide-point .license-link:hover {
  background: #f1f4d8;
}

.guide-point .license-link:focus-visible {
  outline: 3px solid #333;
  outline-offset: 2px;
}