@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@500;700&family=Viga:wght@400&display=swap');

:root {
  --color-main       : #0098dd;
  --color-second     : #80cef3;
  --color-text       : #313841;
  --color-link       : var(--color-main);
  --color-hover      : #f1a1a3;
  --color-yellow     : #ffe632;
  --color-cta-line   : #00B900;
  --color-cta-contact: #ffbf00;
  --color-border     : #ddd;
  --color-grey       : var(--color-border);
  --color-lightgrey  : rgba(0,0,0,0.05);
  --font-main        : 'Noto Sans JP', sans-serif;
  --font-en          : 'Viga', sans-serif;
  --font-icon        : 'FontAwesome';
  --radius           : 15px;
  --radius-sm        : 5px;
  --shadow-box       : 0 0 20px rgba(0,0,0,0.15);
  --transition-300   : all 300ms  ease-in-out;
  --transition-500   : all 500ms  ease-in-out;
  --transition-800   : all 800ms  ease-in-out;
  --transition-1000  : all 1000ms ease-in-out;

  --font-size-xs: 0.75em; 
  --font-size-sm: 0.875em;
  --font-size-md: 1em;    
  --font-size-lg: 1.125em;
  --font-size-xl: 1.25em; 
  --space-xs: .25rem;
  --space-sm: .5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;

}

/* margin */
.u-mt-none { margin-top: 0; }
.u-mb-none { margin-bottom: 0; }
.u-mt-xs { margin-top: var(--space-xs); }
.u-mt-sm { margin-top: var(--space-sm); }
.u-mt-md { margin-top: var(--space-md); }
.u-mt-lg { margin-top: var(--space-lg); }
.u-mt-xl { margin-top: var(--space-xl); }
.u-mb-xs { margin-bottom: var(--space-xs); }
.u-mb-sm { margin-bottom: var(--space-sm); }
.u-mb-md { margin-bottom: var(--space-md); }
.u-mb-lg { margin-bottom: var(--space-lg); }
.u-mb-xl { margin-bottom: var(--space-xl); }

/* text */
.u-text-xs { font-size: var(--font-size-xs); }
.u-text-sm { font-size: var(--font-size-sm); }
.u-text-md { font-size: var(--font-size-md); }
.u-text-lg { font-size: var(--font-size-lg); }
.u-text-xl { font-size: var(--font-size-xl); }
.u-text-center { text-align: center; }
.u-text-left   { text-align: left; }
.u-text-right  { text-align: right; }

  /*ステッチ*/
.is-stitch-white{
  position: relative;
  &::before,&::after{
    content: "";
    position: absolute;
    left: 1%;
    top: 8px;
    width: 98%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.75) 50%, transparent 50%, transparent 100%);
    background-size: 10px 1px;
  }
  &::after{
    top: auto;
    bottom: 8px;
  }
}

html{
  font-size: 100%;
  margin    : 0;
  padding   : 0;
  position: relative;
}
*, *::before, *::after {
  margin    : 0;
  padding   : 0;
  box-sizing: border-box;
}

ol,ul{
  margin    : 0;
  padding   : 0;
  list-style : none;
}

body{
  height     : 100%;
  font-family: var(--font-main);
  color      : var(--color-text);
  background : #fff;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  line-height: 1.8;
  background: url('../images/pattern_cloth_grey.webp') repeat top center / 80px;
  @media ( width <= 62em ) {
    &.no-scroll{
      overflow: hidden;
      touch-action: none;
    }
  }
  &#sub,&#minimal{
    background-image: none;
  }
}

img{ max-width: 100%; }

a{
  color: var(--color-link);
  text-decoration: underline;
  &:link  ,&:visited { color: var(--color-link);  text-decoration: underline; }
  &:hover ,&:active  { color: var(--color-hover); text-decoration: none; }

  &#totop{
    display: none;
    @media ( width > 62em) {
      display: flex;
      align-items: center;
      justify-content: center;
      position: fixed;
      bottom: 0;
      right: 0;
      width: 60px;
      aspect-ratio: 1/1;
      background: var(--color-main);
      color: #fff;
      z-index: 1000;
      overflow: hidden;
      border-radius: var(--radius) 0 0 0;
      text-decoration: none;
      transition: var(--transition-500);
      transform: translateY( calc( 100% + 5px) );
      box-shadow: 0 0 5px rgba(0,0,0,0.3);
      &.active{
        transform: translateX(0);
      }
    }
  }
  &.external{
    text-decoration: none;
    &::after{
      font-family: var(--font-icon);
      content: '\f08e';
      margin-left: .5em;
    }
  }
}

address{
  font-style: normal;
}

.inbox{
  pointer-events: none;
  &.active{
    pointer-events: auto;
  }
}

/* 汎用キーフレーム */
@keyframes clipReveal {
  0% { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0% 0 0); }
}

.container {
  width: 100%;
  max-width: 100%;
  margin: auto;
  container-type: inline-size;
  padding-inline: var(--space-md);
}
@media ( width > 62em) {
  .container {
    max-width: calc(1160px + var(--space-md) + var(--space-md));
  }
}

p{
  margin-bottom: var(--space-lg);
}
picture{
  &.full{
    img{
      display: block;
      width: 100%;
      border-radius: var(--radius);
      margin-bottom: 2em;
    }
    &.inbox{
      img{
        transition: var(--transition-300);
        opacity: 0;
        transform: translateY(1em);
      }
      &.active{
        img{
          opacity: 1;
          transform: translateY(0);
        }
      }
    }
  }
}

br.clear{ clear: both; }

.is-sp{
  @media ( width > 62em) {
    display: none;
  }
}
.is-pc{
  display: none;
  @media ( width > 62em) {
    display: inline;
  }
}

.underline {
  word-break: keep-all;
  font-weight: inherit;
  text-decoration: none;
  margin-inline: .25em;
  background: linear-gradient(
    to top,
    var(--color-yellow) 0%,
    var(--color-yellow) 40%,
    transparent 40%
  );
  background-position: bottom left;
  background-size: 0% 1em;
  background-repeat: no-repeat;
  transition: var(--transition-800);
  /* 画面に入った時 */
  &.show {
    background-size: 100% 1em;
  }
}

h2.common{
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 1em;
  span{
    position:relative;
    display: block;
    font-family: var(--font-en);
    font-weight: 400;
    font-size: .5em;
    color:var(--color-main);
    padding-top: 1.75em;
    letter-spacing: 0;
    &::before{
      content:'';
      position:absolute;
      top:0;
      left:50%;
      width: 1px;
      height: 1.5em;
      background-color: var(--color-main);
      transform: translateX(-50%);
    }
  }
  @media ( width > 62em) {
    font-size: 2rem;
  }
  &.invert{
    color: #fff;
    span{
      color: var(--color-yellow);
      &::before{
        background-color: var(--color-yellow);
      }
    }
  }
}

h2.icon{
  text-align: center;
  margin-bottom: 1em;
  font-size: 1.5em;
  img{
    display: block;
    margin: 0 auto 1em;
    width: 70px;
  }
}

h2.bg{
  background-color: var(--color-main);
  background: url('../images/pattern_cloth_blue.webp') repeat top center / 80px;
  color: #fff;
  padding: 1.5em 0;
  text-align: center;
  text-shadow: 0 0 3px rgba(0,0,0,0.5);
  span{
    display: block;
    font-family: var(--font-en);
    font-weight: 400;
    font-size: .5em;
    text-shadow: none;
    color: var(--color-yellow);
  }
}

h3.common{
  font-size: 1.1rem;
  text-align: center;
  padding-bottom: 1em;
  margin: 2em 0;
  position: relative;
  &::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2em;
    height: 3px;
    background: var(--color-main);
  }
  /*スマホ以上*/
  @media ( width > 48em) {
    font-size: 1.5rem;
  }
}

/*ボタン*/
.buttons{
  text-align: center;
  a{
    position: relative;
    background: var(--color-main);
    color: #fff;
    display: inline-block;
    margin: 0 1em 1em;
    text-decoration: none;
    padding: .5em 4em .5em 3em;
    border: 2px solid var(--color-main);
    border-radius: 100px;
    transition: var(--transition-300);
    font-weight: 700;
    &::after{
      position: absolute;
      top: 50%;
      right: 1.5em;
      content: '\f054';
      font-family: var(--font-icon);
      transform: translate(0,-50%);
      transition: var(--transition-300);
      font-weight: 400;
    }
    &:hover{
      background: #fff;
      color: var(--color-main);
      &::after{
        transform: translate(.5em,-50%);
      }
    }
    &.contact{
      color: var(--color-text);
      background: var(--color-cta-contact);
      border-color: var(--color-cta-contact);
      &:hover{
        background: #fff;
      }
      &:hover::after{
        color: var(--color-cta-contact);
      }
    }
    &.external{
      &::after{
        content: '\f08e';
      }
    }
  }
  &.invert{
    a{
      background: #fff;
      color: var(--color-main);
      border-color: #fff;
      &:hover{
        background: var(--color-main);
        color: #fff;
      }
    }
  }
  &.buttons--sm{
    a{
      font-size: var(--font-size-sm);
      margin: 0 .5em 1em;
      padding: .5em 3em .5em 2em;
      /*スマホ以上*/
      @media ( width > 48em) {
        font-size: .75em;
        margin: 0 .5em 1em;
      }
    }
  }
}


/*--HEADER--------------------------------------------------------------------------------------------------*/
/*TOPページだけkeyframeつける*/
@keyframes top_headerIn{
  to {
    opacity: 1;
  }
}
body#home{
  header#fixed_header{
    animation: top_headerIn 1s ease-out 1s forwards;
    opacity: 0;
  }
}
header#fixed_header{
  display: block;
  background: #fff;
  width: calc(100% - 1rem * 2);
  height: 70px;
  position: fixed;
  top: 0;
  left: 1rem;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  border-radius: 0 0 var(--radius) var(--radius);
  /*overflow: hidden;*/
  z-index:1001;
  .header_logo{
    height: 100%;
    img{
      height: 90%;
    }
  }
  a#menu_bars{
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 70px;
    height: 100%;
    background: var(--color-main);
    border-radius: 0 0 var(--radius) 0;
    cursor: pointer;
    z-index:9999 !important;
    span {
      display: inline-block;
      transition: var(--transition-300);
      box-sizing: border-box;
      position: absolute;
      left: 50%;
      width: 30px;
      height: 4px;
      background-color: #fff;
      border-radius: 2px;
      &:nth-of-type(1){ top: 32%;    transform: translate(-50%, 0); }
      &:nth-of-type(2){ top: 50%;    transform: translate(-50%, -50%); }
      &:nth-of-type(3){ bottom: 32%; transform: translate(-50%, 0); }
    }
    &.active{
      background: none;
      span{
        background-color: var(--color-main);
        &:nth-of-type(1) {
          top: 50%;
          transform: translate(-50%, -50%) rotate(45deg);
        }
        &:nth-of-type(2) {
          transform: scale(0);
        }
        &:nth-of-type(3) {
          bottom: 50%;
          transform: translate(-50%, 50%) rotate(-45deg);
        }
      }
    }
    @media (  width > 62em) {
      display: none;
    }
  }
  nav#header_menu{
    /*--SP-----------------------------------------------------------*/
    @media ( width <= 62em) {
      transform: translateX(100%);
      position: fixed;
      top:0;
      left:0;
      width: 100%;
      height: 100%;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      /*background: url('../images/pattern_cloth_blue.webp') repeat top center / 80px;*/
      background: url('../images/pattern_cloth_natural.webp') repeat top center / 80px;
      z-index:9999;
      padding: calc( 35px + 0px ) 1rem 1rem 1rem;
      pointer-events: none;
      &.active{
        pointer-events: auto;
        opacity: 1;
        transform: translateX(0);
        transition: var(--transition-500);
      }
      .header_cta{
        display: flex;
        flex-wrap: wrap;
        gap: .5em;
        a{
          font-family: var(--font-en), var(--font-main);
          display: flex;
          align-items: center;
          justify-content: center;
          flex: 1 1 calc(50% - .5em);
          text-decoration: none;
          color: #fff;
          padding: .75em 0;
          border: 1px solid var(--color-text);
          border-radius: 1000px;
          &::after{
            font-family: var(--font-icon);
            content: '\f08e';
            margin-left: .5em;
            font-size: .75em;
          }
          &.header_recruit{
            color: var(--color-text);
            background: #efefef;
          }
          &.header_line{
            border-color: var(--color-cta-line);
            background: var(--color-cta-line);
          }
          &.header_contact{
            border-color: var(--color-cta-contact);
            color: var(--color-text);
            background: var(--color-cta-contact);
          }
        }
      }
      > ul{
        margin-bottom: 1em;
        > li{
          > a{
            position: relative;
            padding: .75em 0 .75em 1em;
            display: block;
            font-weight: 700;
            font-size: 1em;
            color: var(--color-text);
            &::before{
              position: absolute;
              top: 50%;
              left: 0;
              font-family: var(--font-icon);
              font-weight: 400;
              content: '\f0da';
              color: var(--color-main);
              transform: translateY(-50%);
            }
          }
          > ul{
            margin: 0 0 0.5em 0;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.5em;
            li {
              a {
                display: block;
                text-align: center;
                padding: 0.75em 0;
                background: #fff;
                border: 1px solid var(--color-main);
                border-radius: 1000px;
                font-size: 0.75em;
                text-decoration: none;
              }
            }
          }
        }
      }
    }
    /*--PC-----------------------------------------------------------*/
    @media ( width > 62em) {
      display: block;
      .header_cta{
        height: 100%;
        display: flex;
        width: 22vw;
        position: absolute;
        top: 0;
        right: 0;
        a{
          font-family: var(--font-en), var(--font-main);
          height: 100%;
          display: flex;
          align-items: center;
          justify-content: center;
          text-decoration: none;
          color: #fff;
          font-size: .9vw;
          &::after{
            font-family: var(--font-icon);
            content: '\f08e';
            margin-left: .5em;
            font-size: var(--font-size-xs);
            font-weight: 400;
          }
          &.header_recruit{
            flex: 1;
            background: #efefef;
            color: inherit;
          }
          &.header_line{
            flex: 1;
            background: var(--color-cta-line);
          }
          &.header_contact{
            flex: 1.5;
            color: var(--color-text);
            background: var(--color-cta-contact);
            border-radius: 0 0 var(--radius) 0;
          }
        }
      }
      > ul{
        display: flex;
        position: absolute;
        align-items: center;
        right: calc( 22vw + .5em );
        top: 0;
        height: 100%;
        > li{
          height: 100%;
          position: relative; /*hoverサブメニュー用*/
          > a{
            position: relative;
            color: var(--color-text);
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            height: 100%;
            font-size: 1vw;
            padding: 0 1vw;
            &::after{
              position: absolute;
              content: '';
              width: 0;
              height: 5px;
              background: var(--color-main);
              bottom: 0;
              left: 50%;
              transform: translateX(-50%);
              transition: var(--transition-300);
            }
            &:hover{
              color: var(--color-link);
              &::after{
                width: 100%;
              }
            }
          }
          &.menu-item-has-children  > a::before{
            font-family: var(--font-icon);
            content: '\f078';
            margin-right: .5em;
            font-size: var(--font-size-xs);
            color: var(--color-main);
          }
          > ul.sub-menu {
            opacity: 0;
            visibility: hidden;
            transform: translate(-50%,10px);
            margin: 0;
            padding: 0;
            width: fit-content;
            position: absolute;
            text-align: center;
            top: 100%;
            left: 50%;
            background: var(--color-main);
            border-radius: 0 0 var(--radius) var(--radius);
            overflow: hidden;
            z-index: 100;
            > li{
              white-space: nowrap;
              > a{
                display: block;
                color: #fff;
                font-size: var(--font-size-xs);
                padding: 1em 1.5em;
                border-top: 1px solid var(--color-second);
                text-decoration: none;
                &:hover{
                  background: rgba(255,255,255,0.1);
                }
              }
              &:first-child > a{
                border-top: none;
              }
            }
          }
          &:hover{
            > ul.sub-menu {
              transition: var(--transition-300);
              opacity: 1;
              visibility: visible;
              transform: translate(-50%,0);
            }
          }
        }
      }
    }
  }
}

/*--FOOTER--------------------------------------------------------------------------------------------------*/
footer{
  border-top: 1px solid rgba(0,0,0,0.1);
  /*下部固定CTA（SPのみ）*/
  nav#footer_fixed_cta{
    /*SP以外非表示*/
    @media ( width > 62em) {
      display: none !important;
    }
    position: fixed;
    bottom: 0;
    left: 1rem;
    z-index: 1000;
    width: calc(100% - 1rem * 2);
    height: 50px;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    line-height:1;
    pointer-events: none;
    transform: translateY(100%) scale(.75);
    transition: var(--transition-500);
    &.active{
      pointer-events: auto;
      transform: translateY(0) scale(1);
    }
    ul{
      height: 100%;
      display: flex;
      li{
        flex: 1;
        a{
          height: 100%;
          position: relative;
          display: flex;
          align-items: center;
          justify-content: center; 
          font-size: var(--font-size-sm);
          color: #fff;
          text-decoration: none;
          padding: 1em 0;
          img{
            width: 1.5em;
            margin-right: .5em;
          }
          &::after{
            color: #fff;
            font-family: var(--font-icon);
            content: '\f08e';
            margin-left: .5em;
          }
        }
        &.footer-line a{
          background: var(--color-cta-line);
        }
        &.footer-contact a{
          color: var(--color-text);
          background: var(--color-cta-contact);
        }
      }
    }
  }
  /*ヘレン用フッター*/
  section.footer-helen{
    border-top: 1px solid rgba(255,255,255,1);  
    position: relative;
    padding: var(--space-xl) 0;
    background: url('../images/pattern_cloth_natural.webp') repeat top center / 80px;
    /*ステッチ*/
    &::before{
      content: "";
      position: absolute;
      left: 1%;
      top: 8px;
      width: 98%;
      height: 1px;
      background: linear-gradient(90deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.2) 50%, transparent 50%, transparent 100%);
      background-size: 10px 1px;
    }
    img.footer-logo-helen{
      display: block;
      width: 175px;
      margin: 0 auto 2em;
    }
    /*SPはアコーディオン*/
    @media ( width <= 48em ) {
      .footer-menu{
        margin-inline: 2em;
        nav{
          &:first-of-type{
            border-top: 1px dotted #ccc;
          }
          > ul{
            > li{
              position: relative;
              border-bottom: 1px dotted #ccc;
              padding: .75em 0;
              &::before{
                content: '\f0da';
                color: var(--color-main);
                font-family: var(--font-icon);
                margin: 0 .5em;
              }
              .menu-toggle-btn {
                display: block; /* スマホで表示 */
                position: absolute;
                top: 0;
                right: 0;
                width: 2em;
                height: 2em;
                background: transparent;
                border: none;
                cursor: pointer;
                font-size: 1.5em;
                color: var(--color-main);
                z-index: 1;
                font-family: var(--font-icon);
                /* アイコンの切り替え */
                &::after {
                  content: '\f107';
                }
                &.active::after {
                  content: '\f106';
                }
              }
              ul.sub-menu{
                display: none;
                margin: .5em 0 0 3em;
                li{
                  font-size: var(--font-size-sm);
                  margin-bottom: .5em;
                }
                &.active{
                  display: block;
                }
              }
            }
            a{
              color: var(--color-text);
            }
          }
        }
      }
    }
    /*タブレット以上はFlex*/
    @media ( width > 48em ) {
      .footer-menu{
        display: flex;
        justify-content: space-between;
        gap: 1em;
        div,nav{
          flex: 1;
        }
        nav{
          padding-inline: 1em;
          > ul{
            font-size: var(--font-size-sm);
            > li{
              margin-bottom: 1em;
              .menu-toggle-btn {
                display: none !important;
              }
              > a{
                position: relative;
                padding-left: 1em;
                &::before{
                  position: absolute;
                  top: 0;
                  left: 0;
                  content: '\f0da';
                  color: var(--color-main);
                  font-family: var(--font-icon);
                }
              }
              /*子ページ用*/
              ul.sub-menu{
                font-size: var(--font-size-sm);
                margin: .5em 0 1em 2em;
                li{
                  margin-bottom: .5em;
                }
              }
            }
          }
          a{
            color: var(--color-text);
          }
        }
      }
    }
  }

  /*案内系フッター*/
  section.footer-info{
    /*background: var(--color-main);*/
    background: #666;
    color: #fff;    
    nav{
      ul{
        li{
          &:not(:first-of-type) a{
            border-top: 1px solid rgba(255,255,255,0.25);
          }
          text-align: center;
          font-size: var(--font-size-sm);
          a{
            display: block;
            padding: 1em;
            color: inherit;
            text-decoration: none;
            &:hover{
              background: rgba(255,255,255,0.1);
            }
            &::after{
              font-family: var(--font-icon);
              content: '\f08e';
              margin-left: .5em;
            }
          }
        }
      }
    }
    /*PC以上*/
    @media ( width > 48em) {
      nav ul{
        display: flex;
        justify-content: center;
        li{
          &:not(:first-of-type) a{
            border-top: 0;
            border-left: 1px solid rgba(255,255,255,0.25);
          }
          a{
            padding-inline: 3vw;
          }
        }
      }
    }
  }

  /*グループ用フッター*/
  section.footer-group{
    padding: var(--space-lg) 0;
    background: #4c4b4c;
    color: #fff;
    /*デスクトップ以上*/
    @media ( width > 62em) {
      padding: 2em 0 0;
    }
    nav.group{
      margin-bottom: 2em;
      ul{
        li{
          margin-bottom: 1em;
          img{
            display: block;
            max-width: 75%;
            margin: 0 auto;
            background: #fff;
            border-radius: var(--radius-sm);
          }
        }
      }
      /*タブレット以上*/
      @media ( width > 48em) {
        margin-bottom: 3em;
        ul{
          display: flex;
          justify-content: center;
          gap: 1.5em;
          li{
            img{
              width: 100%;
              max-width: none;
            }
          }
        }
      }
    }
    nav.sns {
      ul {
        display: flex;
        justify-content: center;
        gap: 2em;
        li {
          margin-bottom: 1em;
          img {
            width: 30px;
          }
        }
      }
    }
    img.footer-logo-flr{
      display: block;
      max-width: 50%;
      margin: 0 auto 2em;
      /*タブレット以上*/
      @media ( width > 48em) {
        max-width: 300px;
      }
    }
    .footer-text{
      text-align: center;
      font-size: var(--font-size-sm);
    }
    .footer-copyright{
      position: relative;
      border-top: 1px solid rgba(0,0,0,0.5);
      text-align: center;
      margin-top: 1em;
      padding-top: 1em;
      font-size: var(--font-size-sm);
      font-family: var(--font-en);
      &::before{
        position: absolute;
        top: 0;
        left: 0;
        content: '';
        width: 100%;
        height: 1px;
        border-top: 1px solid rgba(255,255,255,0.25);
      }
    }
  }
}

/*--MV------------------------------------------------------------------------------------------------------*/
@keyframes mv_clip_zoomout {
  to {
    mask-size: 1000%;
    -webkit-mask-size: 1000%;
  }
}
section.top-slider {
  width: 100%; /*calc(100% - 15px * 2)*/
  aspect-ratio: 1 / 1.25;
  position: relative;
  overflow: hidden;
  margin: 0; /*calc(70px + 15px) auto 15px;*/
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: -1;
  /*SVGでクリッピングマスクを作成*/
  mask-image: url('../images/mv_clip.svg');
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 20%;
  /* WebKit用（Safari対応） */
  -webkit-mask-image: url('../images/mv_clip.svg');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 20%;
  /* アニメーション */
  animation: mv_clip_zoomout 3s ease-in 2s forwards;
  @media ( width > 62em) {
    aspect-ratio: auto;
    height: calc( 100vh - 3em );
    mask-size: 10%;
    -webkit-mask-size: 10%;
  }
}

/*--HEADLINE------------------------------------------------------------------------------------------------------*/
@keyframes top_headlineIn{
  to {
    transform: translateY(-30%);
    opacity: 1;
  }
}
section.top-headline{
  opacity: 0;
  animation: top_headlineIn 1s ease-out 3s forwards;
  dl{
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-box);
    display: flex;
    align-items: stretch;
    dt{
      background: var(--color-text);
      font-family: var(--font-en);
      font-weight: 400;
      color: #fff;
      white-space: nowrap;
      padding: .75em 0;
      min-width: 100px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    dd{
      flex: 1;
      background: #fff;
      padding: .75em 1em;
      font-size: var(--font-size-sm);
      display: flex;
      align-items: center;
    }
  }
}

.parallax {
  position: relative;
  overflow: hidden;
  .parallax__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 105%; /*視差用に縦幅を少しだけ大きくする*/
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    transition-delay: .25s;
    will-change: transform;
    &.show{
      opacity: 1;
    }
  }
}

/*--TOP ABOUTUS------------------------------------------------------------------------------------------------------*/
section.top-aboutus{
  padding: 1em 0 3em;

  ol {
    padding: 1em;
    counter-reset: num;
    li{
      counter-increment: num;
      position: relative;
      display: block;
      margin-bottom: 1em;
      border-radius: var(--radius);
      overflow: hidden;
      line-height: 0;
      &.inbox{
        clip-path: inset(0 100% 0 0);
        &.active{
          animation: clipReveal .75s ease-in-out both;
        }
      }
      span{
        display: inline-block;
        background: url('../images/bg_tag.svg') no-repeat left top / contain;
        color: #fff;
        padding: .75em;
        font-size: 1em;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        line-height: 1.25;
        text-shadow: 0 0 3px rgba(0,0,0,0.5);
        text-align: center;
        &::after{
          display: block;
          font-size: 2em;
          content: counter(num, decimal-leading-zero);
          font-family: var(--font-en);
        }
      }
      h3{
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left:0;
        background: rgba(0,0,0,0.25);
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.5;
        font-size: 1.5rem;
        color: #fff;
        text-shadow: 0 0 3px rgba(0,0,0,0.5);
      }
    }
    @media (width > 62em) {
      padding: 2em;
      display: flex;
      gap: 2em;
      li{
        span{
          font-size: var(--font-size-xs);
        }
      }
    }
  }
}

section.top-school{
  padding: var(--space-xl) 0;
  overflow: hidden;
}

/**********************/
/* SWIPER             */
/**********************/
div.swiper{
  padding: 0 0 3em 0; /*pagination分*/
  margin-bottom: 1.5em;
  overflow: visible;
  &.inbox{
    .swiper-slide{
      opacity: 0;
      transform: translateY(10%);
    }
    &.active{
      .swiper-slide{
        transition: var(--transition-500);
        transform: translateY(0);
        opacity: 1;
        transition-property: transform, opacity;
        /*時差をつける（見えてる３つのみ）*/
        &:nth-child(1){ transition-delay: 0.2s; }
        &:nth-child(2){ transition-delay: 0.4s; }
        &:nth-child(3){ transition-delay: 0.6s; }
      }
    }
  }
  .swiper-slide{
    height: auto; /*要素の高さを合わせる*/
    div{
      height: 100%; /*要素の高さを合わせる*/
      padding-bottom: 2em;
      position: relative;
      overflow: hidden;
      background: #fff;
      box-shadow: var(--shadow-box);
      border-radius: var(--radius);
      h4{
        padding: 1em;
        font-weight: 700;
        font-size: var(--font-size-xl);
      }
      address{
        font-size: var(--font-size-xs);
        padding-inline: 2em;
      }
      a{
        display: block; 
        overflow: hidden;
        font-weight: 500;
        line-height: 0;
        img{
          transition: var(--transition-300);
          aspect-ratio: 16/9;
          object-fit: cover;
        }
        &::after{
          display:inline-block;
          font-family: var(--font-en);
          font-weight: 400;
          content: 'More';
          padding: .25em 1em .5em 1em;
          position: absolute;
          bottom: 0;
          right: 0;
          font-size: var(--font-size-sm);
          color: var(--color-main);
          transition: var(--transition-300);
          line-height: 1;
          border-left: 1px solid var(--color-main);
        }
        &:hover{
          img{
            transform: scale(1.05);
          }
          &::after{
            color: var(--color-hover);
          }
        }
      }
    }
  }
  /* ページネーション */
  .swiper-pagination {
    bottom: 0;
    text-align: center;
    transition: var(--transition-300);
    transform: translate3d(0, 0, 0);
    z-index: 10;
    span{
      width: 18px;
      height: 18px;
      margin: 0 .5em !important;
      transition: var(--transition-300);
      &.swiper-pagination-bullet{
        background: var(--color-main);
      }
    }
  }
  /* 左右ボタン*/
  .swiper-button-prev ,.swiper-button-next{
    background: url('../images/swiper_arrow.svg') no-repeat center center / cover;
    position: absolute;
    top:0;
    width : 35px;
    height: 35px;
    transition: var(--transition-300);
    &::after{
      content: '';
    }
  }
  .swiper-button-prev{
    left: auto;
    transform: translateY(-100%) rotate(180deg);
    right: calc(35px + .75em);
  }
  .swiper-button-next{
    right:0;
    transform: translateY(-100%);
  }
}

section.top-apply{
  background: url('../images/pattern_cloth_blue.webp') repeat top center / 80px;
  padding: var(--space-xl) 0;
  color: #fff;
  text-align: center;

  li{
    &.inbox{
      transition: var(--transition-500);
      opacity: 0;
      transform: translateY(10%);
      &.active{
        opacity: 1;
        transform: translateY(0);
      }
    }
  }
  /*SP*/
  @media ( width <= 48em) {
    ul{
      margin: 2em 0;
      li{
        display: grid;
        align-items: center;
        grid-template-columns: 120px 1fr;
        gap: 1em;
        margin-bottom: 1em;
        div{
          img{
            display: block;
            margin: auto;
            width: 90%;
          }
        }
        h3{
          position: relative;
          line-height: 1.5;
          font-size: 1rem;
          padding: 1em;
          border: 2px solid #fff;
          border-radius: var(--radius);
          background-color: rgba(0,0,0,0.1);
          /*左向き矢印*/
          &::before{
            position: absolute;
            top: 50%;
            left: 0;
            transform: translate(-100%,-50%);
            content: '';
            width: 0;
            height: 0;
            border-style: solid;
            border-top: 6px solid transparent;
            border-bottom: 6px solid transparent;
            border-right: 15px solid #ffffff;
            border-left: 0;
          }
        }
        &:nth-child(even){
          direction: rtl;
          h3::before{
            left: auto;
            right: 0;
            transform: translate(100%,-50%) rotate(180deg);
          }
        }
      }
    }
  }
  /*タブレット以上*/
  @media (width > 48em) {
    ul{
      margin: 2em 0;
      display: flex;
      gap: 2em;
      justify-content: center;
      li{
        line-height: 1;
        margin-bottom: 1em;
        div{
          img{
            filter: blur(0);
            display: block;
            margin: auto;
            width: 75%;
          }
        }
        h3{
          position: relative;
          margin-top: 1.5em;
          line-height: 1.5;
          font-size: 1.1rem;
          padding: 1em;
          border: 2px solid #fff;
          border-radius: var(--radius);
          background-color: rgba(0,0,0,0.1);
          /*上向き矢印*/
          &::before{
            position: absolute;
            top: 0;
            left: 50%;
            transform: translate(-50%,-100%);
            content: '';
            width: 0;
            height: 0;
            border-style: solid;
            border-right: 10px solid transparent;
            border-left: 10px solid transparent;
            border-bottom: 20px solid #ffffff;
            border-top: 0;
          }
        }
      }
    }
  }
}

/*画像付きバナーブロック（汎用）*/
.banner {
  position: relative;
  margin: 2em 0;
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  box-shadow: var(--shadow-box);
  border-radius: var(--radius) var(--radius);
  &.inbox{
    transition: var(--transition-500);
    opacity: 0;
    transform: translateY(10%);
    &.active{
      opacity: 1;
      transform: translateY(0);
    }
  }
  .bubble{
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    line-height: 1.25;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-main);
    color: #fff;
    width: 80px;
    aspect-ratio: 1/1;
    font-size: var(--font-size-sm);
    border-radius: 50%;
    transform: translate(-1em,-1em) rotate(-10deg);
    font-weight: bold;
  }
  > img{
    border-radius: var(--radius) var(--radius) 0 0;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 2 / 1;
  }
  > .content{
    padding: 1.5em;
    color: var(--color-text);
    h4{
      font-size: 1.1em;
      margin-bottom: 1em;
    }
    p{
      font-size: var(--font-size-sm);
    }
  }

  @media (width > 48em) {
    grid-template-columns: 2fr 3fr;
    .bubble{
      width: 100px;
      transform: translate(-30%,-30%) rotate(-10deg);
    }
    > img{
      border-radius: var(--radius) 0 0 var(--radius);
      width: 100%;
      height: 100%;
    }
  }
}

/*--投稿一覧----------------------------------------------------------------------*/
@keyframes floatyBird {
  /*
  from,to {
    transform: translate(10%, -65%);
  }
  50% {
    transform: translate(10%, -55%);
  }
  */
}

ul.posts {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-box);
  padding: 1em 1em 0;
  margin-bottom: 2em;
  position: relative;

  &.inbox{
    transition: var(--transition-500);
    opacity: 0;
    transform: translateY(1em);
    &.active{
      opacity: 1;
      transform: translateY(0);
    }
  }
  /*鳥*/
  /*
  &::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 12vw;
    aspect-ratio: 1 / 1;
    background: url('../images/bird.webp') no-repeat center / contain;
    pointer-events: none;
    animation: floatyBird 4s ease-in-out infinite alternate;
    @media (width > 48em) {
      width: 5vw;
    }
  }
  */
  li {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--space-md);
    text-decoration: none;
    color: inherit;
    align-items: start;
    padding-bottom: var(--space-md);
    &:not(:last-child){
      margin-bottom: var(--space-md);
      border-bottom: 1px dotted var(--color-border);      
    }
    .thumb {
      border-radius: var(--radius-sm);
      overflow: hidden;
      line-height: 0;
      a{
        img {
          aspect-ratio: 1 / 1;
          object-fit: cover;
          transition: var(--transition-300);
        }
        &:hover{
          img{
            transform: scale(1.1);
          }
        }
      }
    }
    .text {
      .categories{
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-sm);
        justify-content: flex-end;
        margin-bottom: var(--space-sm);
        a{
          display: block;
          line-height: 1;
          font-size: .6em;
          padding: var(--space-xs) var(--space-sm);
          border: 1px solid var(--color-main);
          border-radius: var(--radius-sm);
          text-decoration: none;
          background: var(--color-lightgrey);
          color: var(--color-text);
          transition: var(--transition-300);
          &:hover{
            background: var(--color-main);
            color: #fff;
          }
        }
      }
      p.date {
        font-family: var(--font-en);
        font-weight: 400;
        font-size: var(--font-size-sm);
        width: fit-content;
        background: #fff;
        padding-right: var(--space-sm);
        margin-bottom: var(--space-sm);
        line-height: 1;
      }
      h3 {
        position: relative;
        font-size: var(--font-size-sm);
        font-weight: 700;
        line-height: 1.5;
        padding-right: var(--space-lg);
        a{
          display: block;
          /*矢印*/
          &::after{
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            right: 0;
            font-family: var(--font-icon);
            content: '\f054';
            font-size: var(--font-size-xs);
            color: var(--color-main);
          }
          &:hover::after{
            color: var(--color-hover);
          }
        }
      }
    }
  }
  @media (width > 62em) {
    li{
      grid-template-columns: 200px 1fr;
      gap: var(--space-lg);
      .thumb{
        a{
          img{
            aspect-ratio: 4 / 3;
          }
        }
      }
      .text{
        .categories{
          a{
            padding-inline: var(--space-sm);
          }
        }
        h3{
          a{
            font-size: 1.1rem;
          }
        }
      }
    }
  }
}

section.top-posts{
  padding: var(--space-xl) 0;
  overflow: hidden;
}

section.top-recruit{
  padding: var(--space-xl) 1em;
  .parallax__bg{
    display: none;
  }
  img{
    width: 100%;
    border-radius: var(--radius);
  }
  /*タブレット以上*/
  @media ( width > 62em) {
    .parallax__bg{
      display: block;
    }
    padding: 5em 40vw 5em 0;
    img{
      display: none;
    }
    p{
      max-width: 50%;
      margin-inline: auto;
    }
  }
}

/*--下層ページ----------------------------------------------------------------------*/
.youtube {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 2em;
  @media ( width > 48em) {
    width: 65%; 
    margin-inline: auto;
  }
  iframe {
    width: 100%;
    height: 100%;
  }
  &.inbox{
    transition: var(--transition-500);
    transform: translateY(-50%) scale(0);
    opacity: 0;
    filter: blur(2em);
    &.active{
      transform: translateY(0) scale(1);
      opacity: 1;
      filter: blur(0);
    }
  }
}
.google-map {
  aspect-ratio: 2 / 1;
  width: 100%;
  iframe{
    border-radius: var(--radius-sm);
    width: 100%;
    height: 100%;
    border: 0;
  }
}
/*番号付きリスト*/
@counter-style circled-1-20 {
  system: fixed;
  symbols: '\2460' '\2461' '\2462' '\2463' '\2464' '\2465' '\2466' '\2467' '\2468' '\2469'
           '\246A' '\246B' '\246C' '\246D' '\246E' '\246F' '\2470' '\2471' '\2472' '\2473';
  suffix: ' ';
}
ol.num{
  counter-reset: num;
  > li{
    position: relative;
    padding: 0 0 0 1.5em;
    line-height: 1.5;
    margin-bottom: var(--space-xs);    
    counter-increment: num;
    &::before{
      position: absolute;
      top: 0;
      left: 0;
      content: counter(num,circled-1-20);
      color: var(--color-main);
    }
  }
}
/*●リスト*/
ul.dot{
  > li{
    position: relative;
    padding: 0 0 0 1.25em;
    line-height: 1.5;
    margin-bottom: var(--space-xs);    
    &::before{
      font-family: var(--font-icon);
      position: absolute;
      top: 1px;
      left: 0;
      content: '\f111';
      color: var(--color-main);
    }
  }
}
/*※印リスト*/
ul.asterisk{
  background: var(--color-lightgrey);
  padding: .75em;
  border-radius: var(--radius-sm);
  > li{
    position: relative;
    padding: 0 0 0 1.25em;
    font-size: var(--font-size-xs);
    line-height: 1.5;
    &::before{
      position: absolute;
      top: 0;
      left: 0;
      content: '※';
      color: var(--color-main);
    }
    &:not(:last-child) {
      margin-bottom: .25em;
    }
  }
}
/*画像付きリスト*/
ul.with-images {
  > li {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
    margin-bottom: 2em;
    .bubble{
      position: absolute;
      left: 0;
      top: 0;
      z-index: 1;
      line-height: 1.25;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--color-main);
      color: #fff;
      width: 80px;
      aspect-ratio: 1/1;
      font-size: var(--font-size-sm);
      border-radius: 50%;
      transform: translate(-1em,-1em);
      font-weight: bold;
    }
    img.image{
      width: 100%;
      border-radius: var(--radius);
    }
    &.inbox{
      img.image{
        clip-path: inset(0 100% 0 0);
      }
      .bubble{
        transition: var(--transition-500);
        transition-delay: .5s;
        opacity: 0;
      }
      &.active{
        img.image{
          animation: clipReveal .75s ease-in-out both;
        } 
        .bubble{
          opacity: 1;
        }
      }
    }
    div.content{
      h3{
        margin-bottom: 1em;
        line-height: 1.5;
        span{
          position: relative;
          font-family: var(--font-en), var(--font-main);
          font-weight: 400;
          display: inline-block;
          font-size: 1.5em;
          color: var(--color-main);
          width: fit-content;
          margin: 0 .5em 0 0;
          &:before{
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: calc(100% + 1rem);
            height: 1px;
            background: var(--color-main);
            transform: translateX(-1rem);
          }
        }
      }
      p{
        font-size: var(--font-size-sm);
      }
    }
  }
  /*タブレット以上*/
  @media ( width > 48em) {
    > li{
      grid-template-columns: 45fr 55fr; /* カラム横幅の割合 */
      gap: 2em;
      margin-bottom: 4em;
      .bubble{
        font-size: var(--font-size-xs);
        width: 90px;
        transform: translate(-30%,-30%);
      }
      div.content {
        h3{
          span{
            font-size: 2em;
            &:before{
              width: 100%;
              transform: translateX(0);
            }
          }
        }
      }
      /* 奇数偶数でテレコ */
      &:nth-child(even) {
        grid-template-columns: 55fr 45fr; /* カラム横幅の割合 */
        .bubble{
          left: auto;
          right: 0;
          transform: translate(30%,-30%);
        }
        img.image   { order: 2; } /* 画像を右側に */
        div.content { order: 1; } /* テキストを左側に */
      }
    }
  }
}
/*画像付きリスト（画像小さめ）*/
ul.with-images--sm {
  > li {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
    img.image{
      display: block;
      width: 100%;
      margin: 0 auto;
      border-radius: var(--radius);
    }
    &.inbox{
      transform: translateY(1rem);
      opacity: 0;
      transition: var(--transition-300);
      &.active{
        transform: translateY(0);
        opacity: 1;
      }
    }
    div.content{
      h3{
        margin-bottom: 1em;
        line-height: 1.5;
        span{
          position: relative;
          font-family: var(--font-en), var(--font-main);
          font-weight: 400;
          display: inline-block;
          font-size: 1.5em;
          color: var(--color-main);
          width: fit-content;
          margin: 0 .5em 0 0;
          &:before{
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: calc(100% + 1rem);
            height: 1px;
            background: var(--color-main);
            transform: translateX(-1rem);
          }
        }
      }
      p{
        font-size: var(--font-size-sm);
      }
    }
  }
  /*タブレット以上*/
  @media ( width > 48em) {
    > li{
      grid-template-columns: 25fr 75fr; /* カラム横幅の割合 */
      gap: 2em;
      margin-bottom: 3em;
      img.image{
        width: 100%;
      }
      div.content {
        h3{
          span{
            font-size: 2em;
            &:before{
              width: 100%;
              transform: translateX(0);
            }
          }
        }
      }
    }
  }
}
dl.dl-table{
  display: grid;
  grid-template-columns: 1fr;
  font-size: var(--font-size-sm);
  dt{
    position: relative;
    font-weight: 700;
    border-bottom: 1px solid var(--color-border);
  }
  dd{
    padding: .75em 1em 1.5em;
  }
  p{
    margin-bottom: 1em;
  }
  /*タブレット以上*/
  @media ( width > 48em) {
    border-top: 1px solid var(--color-border);
    grid-template-columns: 1fr 3fr;
    dt,dd{
      padding: 1.5em;
      border-bottom: 1px solid var(--color-border);
    }
    dt{
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
}

#sub main {
  position: relative;
  &.overlap{
    z-index: 1;
    transform: translateY(-4vh);
    margin-bottom: -4vh;
  }
}
/*ぱんくず*/
section#breadcrumb{
  border-top: 1px solid var(--color-border);
  /*border-bottom: 1px solid var(--color-border);*/
  ul{
    display: flex;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;                         /* スムーズスクロール */
    -webkit-overflow-scrolling: touch;               /* タッチデバイスでのスクロール改善 */
    scrollbar-width: none; -ms-overflow-style: none; /* スクロールバーを非表示 */
    font-size: var(--font-size-xs);
    line-height: 1;
    li{
      position: relative;
      padding: 1em 1.5em;
      &:not(:first-child)::before{
        position:absolute;
        content: '';
        width: 1px;
        height: 110%;
        background-color: var(--color-border);
        top: 0;
        left: 0;
        transform: rotate(15deg);
      }
    }
  }
}

/*ページタイトル*/
@keyframes pagetitleIn {
  to{
    filter:blur(0);
    opacity: 1;
  }
}
section.pagetitle {
  position: relative;
  padding-top: 70px; /* ヘッダーバーの高さ分 */
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  /* 背景（html側で画像セット） */
  .pagetitle__bg {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: 0;
  }
  /* オーバーレイ */
  &::before {
    content:'';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 1;
    opacity: 0;
    animation: pagetitleIn 1s ease-out 0s forwards;
  }
  h1, p {
    position: relative;
    height: calc(50vh - 70px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
    z-index: 2;
    opacity: 0;
    filter: blur(10px);
    animation: pagetitleIn .5s ease-out 0.5s forwards;
    /* タブレット以上 */
    @media (width > 48em) {
      height: calc(60vh - 70px);
      font-size: 3rem;
    }
  }
  &.pagetitle--sm{
    .pagetitle__bg {
      background-size: 120%;
      filter:blur(5px);
    }
    h1, p {
      height: calc(30vh - 70px);
      transform: translateY(-0.5em);
      /* タブレット以上 */
      @media (width > 48em) {
        height: calc(40vh - 70px);
        transform: translateY(-0.25em);
        font-size: 2.5rem;
      }
      small{
        font-size: var(--font-size-xs);
        display: block;
      }
    }
  }
  &.pagetitle--nobg{
    &::before{
      display: none;
    }
    h1, p{
      display: block;
      text-align: center;
      padding: 1em 0;
      height: auto;
      color: var(--color-text);
      font-size: 1.75em;
      text-shadow: none;
      line-height: 2;
      /* タブレット以上 */
      @media (width > 48em) {
        font-size: 2.25em;
      }
      span{
        display: block;
        font-size: .5em;
        color: var(--color-main);
        font-family: var(--font-en);
        font-weight: 400;
      }
    }
  }
}

/****************
 * ヘレンについて
 ****************/
 .page-section--about {
  padding: var(--space-xl) 0 0;
}

/****************
 * ヘレンの強み
 ****************/
.page-section--strength {
  padding: var(--space-xl) 0 1em;
}

/****************
 * 支援プログラム
 * ※便宜上デスクトップファーストで書いてます※
 ****************/
.page-section--supportpgm {
  position: relative;
  padding: var(--space-xl) 0;
  .c-date {
    text-align: right;
    font-size: .85em;
    margin: 0;
  }
  .scroll-table {
    table {
      border-collapse: separate;
      border-spacing: 5px;
      font-size: var(--font-size-xs);
      th, td {
        box-sizing: border-box;
        padding: 1em;
        border-radius: var(--radius-sm);
      }
      th {
        white-space: nowrap;
        background: var(--color-main);
        color: #fff;
        text-align: center;
        &.sub {
          background: var(--color-main);
          font-size: var(--font-size-sm);
          font-weight: normal;
          text-align: left;
        }
      }
      td {
        background: #edf7f7;
        ul {
          list-style: none;
          margin: 0;
          li {
            position: relative;
            padding: 0 0 0 1.25em;
            &::before {
              width: 10px;
              height: 10px;
              content: '';
              background: var(--color-second);
              border-radius: 50%;
              position: absolute;
              top: .5em;
              left: 0;
            }
          }
        }
      }
    }
    /*モバイルのみ横スワイプ*/
    @media ( width <= 48em ) {
      margin: 0 -1rem;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      
      table {
        padding: 0 calc( 1rem - 5px); /*border-spacing分引く*/
        -webkit-text-size-adjust: none;
        th, td {
          white-space: nowrap;
        }
      }
    }
  }
}

/****************
 * ヘレンの一日
 ****************/
.page-section--routine{
  padding-bottom: var(--space-xl);
  h2.bg{
    padding: 1.5em 0 2.5em;
    margin-bottom: -1.5em;
  }
  ul.timeline {
    position: relative;
    max-width: 100%;
    margin: 0 2rem;
    padding: 1rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-box);
    &.inbox{
      transition: var(--transition-500);
      transform: translateY(1em);
      opacity: 0;
      &.active{
        transform: translateY(0);
        opacity: 1;
      }
    }
    /* 縦線 */
    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 2.75em;
      width: 2px;
      height: 100%;
      background: var(--color-main);
    }
    li {
      position: relative;
      margin-bottom: 1em;
      display: flex;
      align-items: center;
      /* 時間 */
      time {
        position: absolute;
        left: 2em;
        transform: translateX(-50%);
        background: var(--color-main);
        color: #fff;
        padding: 0 1em;
        border-radius: 999px;
        font-family: var(--font-en);        
        z-index: 2;
        font-size: var(--font-size-sm);
        font-weight: 400;
      }
      /* 内容 */
      div{
        width: auto;
        margin-left: 4em;
        padding-left: 1em;
        text-align: left;
        font-size: 1rem;
        color: var(--color-text);
        display: flex;
        align-items: center;
        gap: 1em;
        
        img {
          width: 60px;
          aspect-ratio: 1/1;
          object-fit: cover;
          flex-shrink: 0;
        }
        span { font-weight: 700; }
      }
    }
  }
  /* タブレット以上 */
  @media (min-width: 48em) {
    ul.timeline {
      max-width: 48em;
      margin: 0 auto;
      padding: 2rem 0;
      /* 縦線（中央） */
      &::before {
        left: calc( 50% - 1px );
      }
      li {
        margin-bottom: 0;
        /* 時間の円（デスクトップでは中央） */
        time {
          left: 50%;
          transform: translateX(-50%); /* 中央 */
          width: 3.5rem;
          height: 3.5rem;
          padding: 0;                 /* ピル形の余白をリセット */
          border-radius: 50%;         /* 正円 */
          display: grid;
          place-items: center;        /* 文字を中央に */
        }
        
        /* 内容 */
        div {
          width: 40%;
          margin-left: 0;
          padding-left: 0;
          text-align: right;
          font-size: 1.1rem;
          flex-direction: row-reverse;
          gap: 1.2em;
          img {
            width: 100px;
          }
        }
        &:nth-child(even) div{
          width: 40%;
          margin-left: 60%;
          text-align: left;
          flex-direction: row;
        }

      }
    }
  }
}

/****************
 * なぜヘレンが必要なの？
 ****************/
.page-section--needs{
  padding: var(--space-xl) 0;
}

/****************
 * 利用者の声
 ****************/
.page-section--voices {
  padding: var(--space-xl) 0;
  ul.voices {
    > li {
      background-color: rgba(255,255,255,0.9);
      border-radius: var(--radius);
      padding: 2em;
      box-shadow: var(--shadow-box);
      &:not(:last-child) {
        margin-bottom: 1em;
      }
      img {
        display: block;
        max-width: 120px;
        aspect-ratio: 1/1;
        border-radius: 50%;
        margin: 0 auto 1em;
      }
      div {
        h3 {
          border-left: 3px solid var(--color-main);
          padding-left: .75em;
          line-height: 1.5;
          font-size: 1.1em;
          margin-bottom: 1.5em;
        }
        p {
          font-size : var(--font-size-xs);
          margin: 0 0 1em 0;
        }
      }
      /*タブレット以上*/
      @media ( width > 48em) {
        display: grid;
        grid-template-columns: 20fr 80fr;
        gap: 2em;
        img { max-width: 180px; }
        div {
          p{ font-size: var(--font-size-xs); }
        }
      }
    }
  }
}

/****************
 * ビジョン・ミッション
 ****************/
.page-section--vision{
  padding: var(--space-xl) 0;
  dl{
    div{
      position: relative;
      margin-bottom: 2em;
      border-radius: var(--radius);
      box-shadow: var(--shadow-box);
      overflow: hidden;
      &.inbox{
        transform: translateY(1em);
        transition: var(--transition-500);
        opacity: 0;
        &.active{
          transform: translateY(0);
          opacity: 1;
        }
      }
      dt{
        text-align: center;
        font-weight: 700;
        font-size: 1em;
        background: var(--color-main);
        color: #fff;
        padding: .5em;
        /*
        span{
          font-family: var(--font-en);
          font-weight: 400;
          line-height: .65;
          color: var(--color-lightgrey);
          position: absolute;
          right: 0;
          bottom: 0;
          font-size: 2.5em;
        }
        */
      }
      dd{
        position: relative;
        padding: 1.5em;
        img{
          display: block;
          width: 40%;
          margin: 0 auto 1em;
        }
        ul{
          li{
            position: relative;
            font-size: 1.1em;
            font-weight: 700;
            padding: 0 0 1em 2em;
            &::before{
              background: var(--color-main);
              content: '';
              width: 1.5em;
              height: 1px;
              position: absolute;
              top: 1em;
              left: 0;
            }
          }
        }
        &::before{
          content: '';
          position: absolute;
          top: 0;
          left: 50%;
          width: 0;
          height: 0;
          border-style: solid;
          border-right: 10px solid transparent;
          border-left: 10px solid transparent;
          border-top: 15px solid var(--color-main);
          border-bottom: 0;
          transform: translateX(-50%);
        }
      }
    }
    @media ( width > 48em) {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2em;
    }
  }
}

/****************
 * ネーミング・ロゴ
 ****************/
.page-section--behind{
  padding: 0 0 var(--space-xl);
}

/****************
 * 社会への願い
 ****************/
.page-section--hope{
  padding: 0 0 var(--space-xl);
}

/****************
 * 運営団体
 ****************/
.page-section--corporate{
  padding: var(--space-xl) 0;
  picture{
    img{
      display: block;
      width: 65%;
      margin: 0 auto 3em;
      @media ( width > 48em) {
        width: 40%;
      }
    }
  }
  dl{
    dt {
      font-weight: 700;
      border-bottom: 1px solid var(--color-border);
      font-size: var(--font-size-sm);
    }
    dd {
      padding: 1em 0 2em 2em;
    }
    /*タブレット以上*/
    @media ( width > 48em) {
      display: grid;
      grid-template-columns: 1fr 2.5fr;
      dt,dd{
        font-size: var(--font-size-sm);
        padding: 1.5em 2.5em;
      }
      dt{
        border-right: 1px solid var(--color-border);
        border-bottom: none;
        text-align: right;
      }
    }
  }
}

/****************
 * 障害児保育問題
 ****************/
 .page-section--prob{
  padding: var(--space-xl) 0 0;
 }
 .page-section--approach{
  padding: var(--space-xl) 0;
 }

/****************
 * 保育園一覧
 ****************/
.page-section--school_list{
  padding: var(--space-xl) 0 0;
  > ul{
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    /*タブレット以上*/
    @media ( width > 48em ) {
      grid-template-columns: repeat(2, 1fr);
    }
    li{
      position: relative;
      background: #fff;
      box-shadow: var(--shadow-box);
      border-radius: var(--radius);
      padding-bottom: 2em;
      &.inbox{
        transition: var(--transition-300);
        transform: translateY(1em);
        opacity: 0;
        &.inbox.active{
          transform: translateY(0);
          opacity: 1;
        }
      }
      span.label{
        line-height: 1;
        display: inline-block;
        position: absolute;
        top: 1em;
        left: 0;
        color: #fff;    
        font-size: var(--font-size-xs);
        background: var(--color-main);      
        padding: .5em 1em;
        transform: translateX(-10px);
        border-radius: var(--radius-sm) var(--radius) var(--radius) 0;
        z-index: 0;
        &::before{
          content: '';
          position: absolute;
          bottom: 0;
          left: 0;
          width: 0;
          height: 0;
          border-left:  10px solid transparent; /* 横幅 */
          border-top: 10px solid #777;   /* 高さと色 */
          border-right:0 solid transparent;
          transform: translateY(100%);
        }
      }
      h2{
        padding: 1em;
        font-weight: 700;
        font-size: var(--font-size-xl);
      }
      address{
        font-size: var(--font-size-xs);
        padding-inline: 2em;
      }
      a{
        display: block; 
        overflow: hidden;
        font-weight: 500;
        line-height: 0;
        border-radius: var(--radius) var(--radius) 0 0;
        img{
          transition: var(--transition-300);
          aspect-ratio: 16/9;
          object-fit: cover;
        }
        &::after{
          display:inline-block;
          font-family: var(--font-en);
          font-weight: 400;
          content: 'More';
          padding: .25em 1em .5em 1em;
          position: absolute;
          bottom: 0;
          right: 0;
          font-size: var(--font-size-sm);
          color: var(--color-main);
          transition: var(--transition-300);
          line-height: 1;
          border-left: 1px solid var(--color-main);
        }
        &:hover{
          img{
            transform: scale(1.05);
          }
          &::after{
            color: var(--color-hover);
          }
        }
      }
    }
  }
}

/****************
 * 保育園単体
 ****************/
.page-section--school_data{
  padding: 0 0 var(--space-xl);
  article{
    background: #fff;
    padding: 1.5em;
    border-radius: var(--radius);
    box-shadow: var(--shadow-box);
    /*border-top: 5px solid var(--color-main);*/
    &.inbox{
      transition: var(--transition-500);
      transform: translateY(1em);
      opacity: 0;
      &.active{
        transform: translateY(0);
        opacity: 1;
      }
    }
  }
  figure.swiper-school{
    position: relative;
    padding-bottom: 2em; /*pagenation分*/
    overflow-x: hidden;
    margin-inline: -1.5em;
    .swiper-slide{
      img{
        border-radius: var(--radius);
        aspect-ratio: 16/9;
        object-fit: cover;
      }
      &:not(.swiper-slide-active){
        opacity: 0.5;
        transform: scale(.9);
      }
    }
    /* ページネーション */
    .swiper-pagination {
      bottom: 0;
      text-align: center;
      transition: var(--transition-300);
      transform: translate3d(0, 0, 0);
      z-index: 10;
      span{
        width: 18px;
        height: 18px;
        margin: 0 .5em !important;
        transition: var(--transition-300);
        &.swiper-pagination-bullet{
          background: var(--color-main);
        }
      }
    }
  }
}

/****************
 * 園からのごあいさつ
 ****************/
section.page-section--message{
  background: url('../images/bg_message.webp') no-repeat top center / cover;
  padding: var(--space-xl) 0;
  ul.messages{
    margin-bottom: 2em;
    li{
      display: grid;
      grid-template-columns: 1fr;
      gap: 2em;
      > img{
        display: block;
        width: 50%;
        margin: auto;
      }
      > div{
        align-self: center;
        position: relative;
        padding: 1em;
        border: 3px solid var(--color-main);
        border-radius: var(--radius);
        box-shadow: var(--shadow-box);
        background: #fff;
        &::before{
          content: '';
          position: absolute;
          top: 0;
          left: 50%;
          transform: translate(-50%,-100%);
          width: 0;
          height: 0;
          border-style: solid;
          border-right: 12px solid transparent;
          border-left: 12px solid transparent;
          border-bottom: 22px solid #0098dd;
          border-top: 0;
        }
        p{
          margin-bottom: 0;
        }
      }
      /*タブレット以上*/
      @media ( width > 48em) {
        grid-template-columns: 1fr 4fr;
        > img{
          width: 100%;
        }
        > div{
          &::before{
            top: 50%;
            left: 0;
            transform: translate(-100%,-50%) rotate(-90deg);
          }
        }
      }
    }
  }
}

/****************
 * アニー紹介
 ****************/
section.page-section--annie{
  padding: var(--space-xl) 0;
  a.annie_banner{
    img{
      display: block;
      max-width: 300px;
      margin: auto;
      border: 2px solid var(--color-border);
      transition: var(--transition-300);
    }
    &:hover{
      img{
        border-color: var(--color-hover);
      } 
    }
  }
}
/****************
 * よくあるご質問
 ****************/
 section.page-section--faq{
  padding: var(--space-xl) 0;
  details{
    margin-bottom: 1em;
    border: 2px solid #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-box);    
    transition: var(--transition-300);
    > summary{
      position: relative;
      padding: 1em 2.5em;
      cursor: pointer;
      list-style: none;
      font-weight: 700;
      &::before{
        font-family: var(--font-en);
        font-weight: 400;
        content:'Q.';
        position: absolute;
        top: var(--font-size-sm);
        left: 1em;
        font-size: 1.1em;
        color: var(--color-main);
      }
      &::after {
        font-family: var(--font-icon);
        color: var(--color-main);
        content:'\f054';
        font-weight: normal;
        position: absolute;
        top: 50%;
        right: 1em;
        transition: var(--transition-300);
        transform: translateY(-50%);
      }
    }
    > div{
      position: relative;
      border-top: 1px solid var(--color-border);
      margin-inline: 1em;
      padding: 1em 1.5em 1em 1.5em;
      p{
        margin-bottom: 1em;
      }
      &::before{
        font-family: var(--font-en);
        font-weight: 400;
        content:'A.';
        position: absolute;
        top: var(--font-size-sm);
        left: 0;
        font-size: 1.1em;
        color: var(--color-hover);
      }
    }
    &[open]{
      border-color: var(--color-main);
      > summary{
        &::after {
          transform: translateY(-50%) rotate(90deg);
        }  
      }
    }
  }
}
/******************
 * フォトギャラリー
*******************/
/*本体CSS上書き*/
.mfp-title{
  font-size: var(--font-size-xs);
  padding-right: 6em;
}
section.page-section--photo{
  padding: 0 0 var(--space-xl);
  &.inbox{
    opacity: 0;
    transform: translateY(1em);
    transition: var(--transition-500);
    &.active{
      opacity: 1;
      transform: translateY(0);
    }
  }
  ul.gallery{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: .5em;
    /*タブレット以上*/
    @media ( width > 48em) {
      grid-template-columns: repeat(3,1fr);
    }
    /*PC以上*/
    /*
    @media ( width > 62em) {
      grid-template-columns: repeat(4,1fr);
    }
    */
    li{
      line-height: 0;
      border-radius: var(--radius);
      overflow: hidden;
      &.inbox{
        opacity: 0;
        transform: translateY(1em);
        transition: var(--transition-300);
        &.active{
          opacity: 1;
          transform: translateY(0);
        }
      }
      a{
        display: block;
        position: relative;
        img{
          transition: var(--transition-300);
          width: 100%;
          aspect-ratio: 4/3;
          object-fit: cover;
        }
        &::after{
          transition: var(--transition-300);
          opacity: 0;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 2em;
          font-family: var(--font-icon);
          content: '\f00e';
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: rgba(0,0,0,0.25);
          color: #fff;
        }
        &:hover{
          img{
            transform: scale(1.05);
          }
          &::after{
            opacity: 1;
          }
        }
      }
    }
  }
}

/****************
 * 対象
*****************/
 section.page-section--info{
  padding: var(--space-xl) 0;
 }

/****************
 * お預かり症例
*****************/
section.page-section--case{
  padding: var(--space-xl) 0;
  ul{
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    /*タブレット以上*/
    @media ( width > 48em) {
      grid-template-columns: repeat(3,1fr);
    }
    li{
      &.inbox{
        opacity: 0;
        transform: translateY(1em);
        transition: var(--transition-300);
        &.active{
          opacity: 1;
          transform: translateY(0);
        }
      }
      > div{
        /* Permalink - https://colorzilla.com/gradient-editor/#80cef3+0,ffffff+100&0.3+1,0+100 */
        background: linear-gradient(to bottom,  rgba(128,206,243,0.3) 0%,rgba(129,206,243,0.3) 1%,rgba(255,255,255,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        border-radius: var(--radius) var(--radius) 0 0;
        img{
          display: block;
          margin: auto;
          max-width: 50%;
          transform: translateY(-1em);
        }
      }
      h3{
        text-align: center;
        font-size: var(--font-size-md);
        line-height: 1.5;
        margin-bottom: var(--space-md);
        span{
          font-family: var(--font-en);
          font-weight: 400;
        }
      }
      .check{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        span{
          margin-right: var(--space-sm);
          font-size: var(--font-size-sm);
          &::before{
            font-family: var(--font-icon);
            content: '\f046';
            margin-inline: var(--space-sm);
            color: var(--color-main);
          }
        }
      }
    }
  }
}
/****************
 * 入園までの流れ
*****************/
 section.page-section--steps{
   background: url('../images/pattern_cloth_blue.webp') repeat top center / 80px;
   padding: var(--space-xl) 0;
   dl{
     counter-reset: step-counter; 
     div{
       position: relative;
       padding: 0 0 var(--space-lg) 90px;
       /*タブレット以上*/
       @media ( width > 48em) {
         padding: 0 0 var(--space-lg) 150px;
       }
       dt{
         color: #fff;
         padding: .75em 0;
         line-height: 1.5;
         font-weight: 700;
         font-size: var(--font-size-xl);
         text-align: center;
         counter-increment: step-counter;
         /*タブレット以上*/
         @media ( width > 48em) {
           text-align: left;
         }
         span{
           &::before{
             content: "Step " counter(step-counter, decimal-leading-zero);
           }
           display: block;
           position: absolute;
           left: 0;
           width: 75px;
           text-align: center;
           font-family: var(--font-en);
           color: #fff;
           font-size: 1.25rem;
           font-weight: 400;
           /*タブレット以上*/
           @media ( width > 48em) {
             width: 110px;
           }
           i.fa{
             display: flex;
             align-items: center;
             justify-content: center;
             width: 100%;
             aspect-ratio: 1/1;
             background:var(--color-hover);
             border-radius: 50%;
             font-size: 2em;
             /*タブレット以上*/
             @media ( width > 48em) {
               font-size: 2.5em;
             }
           }
         }
         &::before{
           position: absolute;
           content: '';
           top: var(--space-xl);
           left: calc(75px / 2);
           width: 3px;
           height: calc(100% - var(--space-xl));
           background-image: radial-gradient(circle at center, var(--color-hover) 1.5px, transparent 1.5px);
           background-size: 3px 8px; /* ドット間隔を調整 */
           background-repeat: repeat-y;
           background-position: bottom;
           @media ( width > 48em) {
             left: calc(110px / 2);
           }
         }
       }
       dd{
         border-radius: var(--radius);
         box-shadow: var(--shadow-box);
         background: #fff;
         padding: 1em;
       }
       &:last-child dt::before{
         display: none;
       }
       &.inbox{
         transition: var(--transition-300);
         transform: translateY(var(--space-md));
         opacity: 0;
         dt::before{
           transition: var(--transition-1000);
           clip-path: inset(0 0 100% 0)
         }
         &.active{
           transform: translateY(0);
           opacity: 1;
           dt::before{
             clip-path: inset(0 0 0% 0); 
           }
         }
       }
     }
   }
 }

/****************
* スポット利用
****************/
section.page-section--spot{
  padding: var(--space-xl) 0 0;
}

/****************
* 研修・視察
****************/
nav.anchors{
  ul{
    display: grid;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    li{
      line-height: 1.5;
      &:not(:last-child){
        border-bottom: 1px solid var(--color-border);
      }
      a{
        position: relative;
        display: block;
        padding: var(--space-md);
        padding-left: 2.5em;
        text-decoration: none;
        font-size: var(--font-size-sm);
        &::before{
          position: absolute;
          font-family: var(--font-icon);
          content: '\f078';
          top: var(--space-md);
          left: .75em;
          color: var(--color-main);
        }
        &:hover::before{
          color: var(--color-hover);
        }
      }
    }
    /*タブレット以上*/
    @media ( width > 48em ) {
      grid-template-columns: repeat(2,1fr);
      li{
        text-align: center;
        &:not(:last-child){
          border-right: 1px solid var(--color-border);
          border-bottom: none;
        }
      }
    }
  }
}

/****************
 * 視察概要
 ****************/
section.page-section--sitevisit{
  padding: 0 0 var(--space-xl) 0;
}

/****************
 * 研修概要
*****************/
section.page-section--training{
  padding: var(--space-xl) 0;
  /*タブ*/
  nav#training-tab{
    position: relative;
    margin-bottom: var(--space-xl);
    &::before{
      content: '';
      background: var(--color-main);
      position: absolute;
      width: 100%;
      height: 2px;
      bottom: 0;
      left: 0;
      z-index: -1;
    }
    ul{
      display: flex;
      justify-content: center;
      gap: 1em;
      li{
        transition: var(--transition-300);
        line-height: 1;
        button{
          all: unset;
          cursor: pointer;
          background: var(--color-border);
          padding: 1.5em;
          border: 2px solid var(--color-lightgrey);
          border-radius: var(--radius-sm) var(--radius-sm) 0 0;
          background: var(--color-lightgrey);
          font-size: var(--font-size-sm);
          text-align: center;
          /*タブレット以上*/
          @media ( width > 48em ) {
            min-width: 20em;
          }
          &.active{
            background: #fff;
            border: 2px solid var(--color-main);
            border-bottom: 2px solid #fff;
            font-weight: 700;
          }
        }
      }
    }
  }
  .training-tab-content{
    h4{
      border: 1px solid var(--color-main);
      margin-bottom: var(--space-md);
      border-radius: var(--radius-sm);
      padding: .5em 1em;
      span{
        font-weight: normal;
        font-size: var(--font-size-xs);
        margin-left: .5em;
      }
    }
  }
}

/****************
 * ページナビ
 *****************/
.wp-pagenavi{
  font-family: var(--font-en);
  margin: 0 auto var(--space-xl);
  display: flex;
  gap: .5em;
  align-items: center;
  justify-content: center;
  width: fit-content;
  a,span{
    display: flex;
    padding-inline: 0.25em;
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--font-size-lg);
    border-bottom: 3px solid #fff;
    font-weight: 400 !important;
    &.current{
      color: var(--color-main);
      border-color: var(--color-main);
    }
    &:hover{
      color: var(--color-hover);
    }
    &.first,
    &.last,
    &.previouspostslink,
    &.nextpostslink{
      position: relative;
      text-indent: -9999px;
      overflow: hidden;
      display: inline-block;
      width: 1.5em; /* アイコン用の幅 */
      aspect-ratio: 1 / 1;
      border: 1px solid var(--color-main);
      border-radius: 50%;
      background-color: var(--color-lightgrey);
      &::after{
        text-indent: 0;
        font-size: var(--font-size-xs);
        font-family: var(--font-icon);
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
      &:hover{
        background-color: var(--color-main);
        border-color: var(--color-main);
        &::after{
          color: #fff;
        }
      }
    }
    &.first::after{
      content: '\f100';
    }
    &.previouspostslink::after{
      content: '\f104';
    }
    &.nextpostslink::after{
      content: '\f105';
    }
    &.last::after{
      content: '\f101';
    }
    &.extend{
      color: var(--color-grey);
    }
  }
}
/****************
 * 投稿（単一）
*****************/
.single-post{
  padding: 0 0 var(--space-xl);
  .single-post-content{
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-box);
    position: relative;
    &.inbox{
      transition: var(--transition-500);
      opacity: 0;
      transform: translateY(1em);
      &.active{
        opacity: 1;
        transform: translateY(0);
      }
    }
    picture.thumb{
      img{
        width:100%;
        height: auto;
        border-radius: var(--radius) var(--radius) 0 0;
      }
    }
    .single-post-categories{
      display: flex;
      gap: var(--space-sm);
      padding: var(--space-md) var(--space-md) 0;
      @media ( width > 48em ) {
        padding: var(--space-md) var(--space-lg) 0;
      }
      justify-content: flex-end;
      a{
        display: block;
        line-height: 1;
        font-size: var(--font-size-xs);
        padding: var(--space-xs) var(--space-sm);
        border: 1px solid var(--color-main);
        border-radius: var(--radius-sm);
        text-decoration: none;
        background: var(--color-lightgrey);
        color: var(--color-text);
        transition: var(--transition-300);
        &:hover{
          background: var(--color-main);
          color: #fff;
        }
      }
    }
    article{
      padding: var(--space-md);
      /*タブレット以上*/
      @media ( width > 48em ) {
        padding: var(--space-lg);
      }
      word-break: break-all;
      overflow-wrap: break-word;
      img{
        max-width: 100%;
        height: auto;
      }
      p.single-post-date{
        color: var(--color-main);
        font-family: var(--font-en);
        margin-bottom: 1em;
        font-size: var(--font-size-lg);
      }
      h1{
        font-size: 1.25rem;
        margin-bottom: 2em;
        /*タブレット以上*/
        @media ( width > 48em ) {
          font-size: 2.5rem;
        }
      }
      h2,h3,h4,h5,h6{
        position: relative;
        margin-bottom: 2em;
        line-height: 1.5;
      }
      h2{
        font-size: 1.25rem;
        border: solid var(--color-main);
        border-width: 1px 0;
        color: var(--color-main);
        padding-block: 1em;
        /*タブレット以上*/
        @media ( width > 48em ) {
          font-size: 2rem;
        }
      }
      h3{
        font-size: 1.25rem;
        border-bottom: 1px solid var(--color-main);
        /*タブレット以上*/
        @media ( width > 48em ) {
          font-size: 2rem;
        }
      }
      h4{
        padding: 0 0 0 .75em;
        font-size: 1rem;
        border-left: 5px solid var(--color-main);
        /*タブレット以上*/
        @media ( width > 48em ) {
          font-size: 2rem;
        }
      }
      h5{
        padding: 0 0 0 2em;
        font-size: 1rem;
        /*タブレット以上*/
        @media ( width > 48em ) {
          font-size: 1.75rem;
        }
        &::before{
          content: '';
          position: absolute;
          width: 1.5em;
          height: 1px;
          background: var(--color-main);
          top: .75em;
          left: 0;
        }
      }
      h6{
        font-size: 1rem;
        /*タブレット以上*/
        @media ( width > 48em ) {
          font-size: 1.5rem;
        }
      }
      ul{
        margin-bottom: var(--space-lg);
        > li{
          position: relative;
          padding: 0 0 0 1.25em;
          line-height: 1.5;
          margin-bottom: var(--space-xs);
          &::before{
            font-family: var(--font-icon);
            position: absolute;
            top: 1px;
            left: 0;
            content: '\f111';
            color: var(--color-main);
          }
        }
      }
      ol{
        margin-bottom: var(--space-lg);
        counter-reset: num;
        > li{
          position: relative;
          padding: 0 0 0 1.5em;
          line-height: 1.5;
          margin-bottom: var(--space-xs);    
          counter-increment: num;
          &::before{
            position: absolute;
            top: 0;
            left: 0;
            content: counter(num,circled-1-20);
            color: var(--color-main);
          }
        } 
      }

    }
    nav.single-post-navi{
      margin-top: var(--space-lg);
      display: grid;
      grid-template-columns: 1.5fr 1fr 1.5fr;
      border-top: 1px solid var(--color-border);
      > div{
        &:not(:first-child){
          border-left: 1px solid var(--color-border);
        }
        a{
          display: block;
          padding: 1.5em .5em;
          font-size: var(--font-size-sm);
          text-decoration: none;
          line-height: 1;
          &::before,&::after{
            font-family: var(--font-icon);
          }
        }
        &.next{
          a::before{
            content: '\f137';
            margin-right: var(--space-sm);
          }
        }
        &.prev{
          text-align:right;
          a::after{
            content: '\f138';
            margin-left: var(--space-sm);
          }          
        }
        &.list{
          text-align: center;
          a::before{
            content: '\f03a';
            margin-right: .5em;
          }
        }
      }
    }
  }
}

/*************************
 * 規約等シンプル系ページ
**************************/
body#minimal{
  header{
    h1{
      text-align: center;
      font-size: var(--font-size-xl);
      padding-block: var(--space-xl);
    }
  }
  main{
    padding-block: 0 var(--space-xl);
    font-size: var(--font-size-sm);
    dl{
      p{
        margin-bottom: initial;
      }
      dt{
        font-size: var(--font-size-lg);
        font-weight: 700;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: var(--space-sm);
      }
      dd{
        padding: var(--space-md) 0  var(--space-xl) var(--space-md);
        h4{
          margin-block: var(--space-md);
        }
      }
      ol{
        counter-reset: number;
        li{
          position: relative;
          padding-left: 2em;
          margin-bottom: var(--space-xs);
          &::before{
            position: absolute;
            counter-increment: number;
            content: counter(number)'.';
            top: 0;
            left: 0;
          }
        }
      }
    }
  }
  footer{
    font-family: var(--font-en);
    padding: var(--space-xl);
    text-align: center;
    font-size: var(--font-size-sm);
    background: var(--color-lightgrey);
    border: 0;
  }
}

/*************************
 * カテゴリー絞り込み
**************************/
section.categories-list{

  margin-bottom: var(--space-lg);
  /*タブレット以上*/
  @media ( width > 48em ) {
    margin-bottom: var(--space-xl);
  }
  display: flex;
  flex-direction: column;
  &.inbox{
    opacity: 0;
    transition: var(--transition-500);
    &.active{
      opacity: 1;
    }
  }
  h2{
    font-size: var(--font-size-sm);
    line-height: 1;
    border-bottom: 1px dotted var(--color-main);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-md);
    &::before{
      color: var(--color-main);
      font-family: var(--font-icon);
      content: '\f0b0';
      font-weight: 400;
      margin-right: var(--space-xs);
    }
  }
  ul{
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    /*タブレット以上*/
    @media ( width > 48em ) {
      gap: var(--space-md);
    }
    li{
      a{
        display: block;
        background: var(--color-lightgrey);
        text-decoration: none;
        color: var(--color-text);
        font-size: var(--font-size-sm);
        border: 1px solid var(--color-main);
        border-radius: var(--radius-sm);
        line-height: 1;
        padding: var(--space-sm) var(--space-sm) var(--space-sm) var(--space-md);
        transition: var(--transition-300);
        &:hover{
          background: var(--color-main);
          color: #fff;
        }
        span.count{
          display: inline-flex;
          justify-content: center;
          align-items: center;
          background: #fff;
          color: var(--color-main);
          min-width: 1.5em;
          height: 1.5em;
          font-size: var(--font-size-xs);
          padding: var(--space-xs);
          border-radius: var(--radius-sm);
          margin-left: var(--space-sm);
        }
      }
      &.current-cat{
        a{
          background: var(--color-main);
          color: #fff;
          padding-left: var(--space-sm);
          &::before{
            font-family: var(--font-icon);
            content: '\f107';
            margin-right: var(--space-sm);
          }
        }
      }
    }
  }
}

/*************************
 * 404 NOT FOUND
**************************/
.single-page--404{
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(to bottom, var(--color-lightgrey), white);
  h1{
    font-family: var(--font-en);
    font-weight: 400;
    color: var(--color-main);
    font-size: 4em;
    line-height: 1.25;
    span{
      display: block;
      color: var(--color-text);
      font-size: .4em;
    }
  }
  h2{
    font-size: var(--font-size-xl);
  }
}